aronshamash
06/14/2023, 10:53 AMsessionData
in the session recipe like:
createNewSession: async function (input) {
if (input.sessionData?.userType === UserType.PARTNER) {
input.sessionData.userType = UserType.PARTNER;
}
return originalImplementation.createNewSession(input);
}
})
and I was hoping for it to be available by the react frontend in the useSessionContext
from import { useSessionContext } from 'supertokens-auth-react/recipe/session';
but all I see is:
{
"loading": false,
"doesSessionExist": true,
"invalidClaims": [],
"accessTokenPayload": {
"st-ev": {
"v": false,
"t": 1686675752132
}
},
"userId": "bca760c2-ac0d-4334-9552-e5c93b97d830"
}
Is there a better way or is the sessionData not available to the front end ? thanks in advance