You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import Session from 'supertokens-web-js/recipe/session';
async function someFunc() {
if (await Session.doesSessionExist()) {
let accessTokenPayload = await Session.getAccessTokenPayloadSecurely();
let customClaimValue = accessTokenPayload.customClaim
}
}
any
type ingetAccessTokenPayloadSecurely
isn't not helping making our code cleanr. Docs https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/sessions/claims/access-token-payload#reading-the-payload-on-the-frontend says it can return an object.// supertokens-auth-react/recipe/session/index.d.ts
Could you replace
any
for something liketype | undefined
to improve cases like mine:The text was updated successfully, but these errors were encountered: