https://supertokens.com/ logo
Title
p

productdevbook

02/18/2023, 4:14 PM
tokenTransferMethod header problem
"Auth errorAuthorization token is missing
https://supertokens.com/docs/session/common-customizations/sessions/token-transfer-method all change
const _session = await Session.getSession(req, reply)
this problem ?
type: 'INVALID_CLAIMS',
   payload: [ { id: 'st-ev', reason: [Object] } ],
  errMagic: 'ndskajfasndlfkj435234krjdsa',
  fromRecipe: 'session'
 }
r

rp

02/18/2023, 4:23 PM
this means that the user's email has not been verified
so the getSession function checks for email verification claim cause you have probably added email verification as REQUIRED mode on the backend?
p

productdevbook

02/18/2023, 4:24 PM
hmm yes thats true
r

rp

02/18/2023, 4:24 PM
yea, so first verify the email associated with the session, and that will give you a new session token which you can then use to access your APIs.
p

productdevbook

02/18/2023, 4:55 PM
how to client check before ?
const isSessionExists = await Session.doesSessionExist()
?
r

rp

02/18/2023, 4:56 PM
huh?
p

productdevbook

02/18/2023, 4:57 PM
How can I tell if there is an email validation error on the front?
r

rp

02/18/2023, 4:57 PM
see our docs for this please
p

productdevbook

02/18/2023, 5:14 PM
nuxt 3
Error: No instance of Session found. Make sure to call the Session.init method.
r

rp

02/18/2023, 5:15 PM
the code in linked for you was for the frontend
i really recommend that you see the docs in more detail. I can't really help by hand holding here. I hope you understand 🙂