markmanx
09/09/2023, 3:36 PMgetSession()
(the non-middleware form of verifySession
). The behaviour of this function is unclear when there is no session to return. The docs say to check for undefined
but the typings contradict this. Docs I'm referring to are here >> https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/sessions/session-verification-in-api/get-session#using-getsession