From 9c91ee3b5db24bdae4c5ca512630ad5d876dd944 Mon Sep 17 00:00:00 2001 From: Alex Youssefinia Date: Wed, 11 Dec 2024 16:55:36 -0600 Subject: [PATCH] remove keyword custom --- services/admin/handlers/addPropertyToJWT.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/admin/handlers/addPropertyToJWT.js b/services/admin/handlers/addPropertyToJWT.js index e70ece2a3..c2475d5cb 100644 --- a/services/admin/handlers/addPropertyToJWT.js +++ b/services/admin/handlers/addPropertyToJWT.js @@ -14,7 +14,7 @@ const handler = async (event) => { event.response.claimsOverrideDetails.claimsToAddOrOverride = event.response.claimsOverrideDetails.claimsToAddOrOverride || {}; // Example of adding roles dynamically from DynamoDB to the JWT claims - event.response.claimsOverrideDetails.claimsToAddOrOverride['custom:user_roles'] = JSON.stringify(roles); // Add user roles + event.response.claimsOverrideDetails.claimsToAddOrOverride['user_roles'] = JSON.stringify(roles); // Add user roles } catch(e) { console.log("error updating id token claims", e) }