Hey! Is it possible to check if the user already h...
# support-questions
n
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
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
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