nishant_57474
10/11/2023, 3:20 PMSessionNode.init({
override: {
functions: (originalImplementation) => {
return {
...originalImplementation,
createNewSession: async function (input) {
// This goes in the access token, and is available to read on the frontend.
input.accessTokenPayload = {
...input.accessTokenPayload,
org_id: 'someValue',
};
return originalImplementation.createNewSession(input);
},
};
},
},
}),
but when i try to read on backend
console.log(_opts.session?.getAccessTokenPayload().customClaim);
It's return undefined, Any clue where I am doing wrong ?