From 445ac505378d34a3493fa4a8e2610b50389ce109 Mon Sep 17 00:00:00 2001 From: LandaMm Date: Sat, 7 Jun 2025 19:50:51 +0200 Subject: [PATCH] feat: list of permissions --- web/src/pages/Authorize/index.tsx | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/web/src/pages/Authorize/index.tsx b/web/src/pages/Authorize/index.tsx index fe4b9cd..7ad1063 100644 --- a/web/src/pages/Authorize/index.tsx +++ b/web/src/pages/Authorize/index.tsx @@ -126,18 +126,21 @@ const AuthorizePage: FC = () => { {/* */}
-
-
-
-

View your full name, email and profile image

-
-
-
-
-
-

View your permission from "MDN" group

-
-
+ {(apiService?.scopes?.length ?? 0) > 0 && + apiService!.scopes.map((scope) => ( +
+
+
+

View your full name, email and profile image

+

+ {scope === "openid" && + "Access your account id and use it"} + {scope === "email" && "View your email address"} + {scope === "profile" && "View your profile image"} +

+
+
+ ))}