https://supertokens.com/ logo
email verification claim error
p

PixelGamer

05/05/2023, 9:33 AM
When a user uses Email/Password to register I then have a problem with app.get("/api/getcharacters", verifySession(), async (req, res) => {}); verfiySession throws {"message":"invalid claim","claimValidationErrors":[{"id":"st-ev","reason":{"message":"wrong value","expectedValue":true,"actualValue":false}}]} When I use sign in with google this doesn't happen. How can I fix it? Thanks!
r

rp

05/05/2023, 10:19 AM
hey @PixelGamer this means that you need to verify the user's email before they can access your APIs.
p

PixelGamer

05/05/2023, 10:45 AM
That did it thanks!