Skip to content

Commit

Permalink
remove keyword custom
Browse files Browse the repository at this point in the history
  • Loading branch information
anyoussefinia committed Dec 11, 2024
1 parent 2ea4c9b commit 9c91ee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/admin/handlers/addPropertyToJWT.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 9c91ee3

Please sign in to comment.