Join Discord
Powered by
What's the best way for backend code to check if a...
# support-questions-legacy
g
goodgravy
11/22/2023, 1:59 PM
What's the best way for backend code to check if a user is authenticated and retrieve the session?
https://supertokens.com/docs/thirdparty/nextjs/session-verification/in-api#3-call-the-verifysession-session-function
talks about
verifySession
, but that returns a 401 to the client – rather than programmatically indicating if the user is authenticated.
3
Views
Previous
Next