Hello,
I am getting problem in access token provided by auth0, Unfortunately not getting user_id in ‘sub’ claim in access token.
i am getting this weird text : “wYRfoUM1hDWKaxbwjRhVncqIvVUQU2EC@clients”
expecting : "auth0|sjdhfjsvd… " (user_id).
I also tried to add custom claim in login/post login action like
exports.onExecutePostLogin = async (event, api) => {
console.log("ACTION STARTED");
if (event.authorization) {
console.log("USER_ID",event.user.user_id);
// Set claims
api.accessToken.setCustomClaim(`user_id`,event.user.user_id);
}
console.log("ACTION COMPLETED");
};
still this user_id is not showing up in access token payload.