From e1ae914a2e851bc2b08a52c1d8bb666514c25045 Mon Sep 17 00:00:00 2001 From: Alex Youssefinia Date: Wed, 11 Dec 2024 13:09:16 -0600 Subject: [PATCH] added comment for intial login --- services/app-api/getUserV2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/app-api/getUserV2.js b/services/app-api/getUserV2.js index cbc480e36..1a27592a3 100644 --- a/services/app-api/getUserV2.js +++ b/services/app-api/getUserV2.js @@ -64,7 +64,7 @@ export const main = handler(async (event) => { console.log("decoded id token: ", decodedIdToken); const idTokenEmail = decodedIdToken.email; let userRoles = decodedIdToken.user_roles; - + // on initial login user roles is undefined if(!userRoles) { const userItem = (await getUser(event.queryStringParameters.email)) ?? {}; userItem.validRoutes = getUserRoleObj(userItem.roleList).getAccesses();