https://supertokens.com/ logo
n

NovyLevi

04/17/2022, 10:03 AM
Hey! Is it possible to check if the user already has a session inside
thirdPartySignInUpPOST
override? I tried something like
await verifySession({ sessionRequired: false })(input.options.req, input.options.res);
but that errors out.
r

rp

04/17/2022, 10:20 AM
Hey @User
What is the error that you are getting?
You also need to provide a next function along with req and res
You can instead use the getSession function. Which is more suitable to use inside an API
n

NovyLevi

04/17/2022, 10:27 AM
Give me a sec, I wil try the get session method
Thank you so much, getSession works flawlessly with input.options.req and input.options.res 🙂
3 Views