What's the best way for backend code to check if a...
# support-questions-legacy
g
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