@rp_st is there any documentation to know if the session is expired in the app side (vue3). I am using apollo client graphql and i want to create middle-ware where it will check if the session is Expired and redirect to login page. And yes I am not using pre built ui of supertokens.
r
rp_st
01/31/2023, 2:49 PM
hey @porcx you can use the Session recipe';s Session.doesSessionExist function
p
porcx
01/31/2023, 3:03 PM
Yes found that. Thanks again 🙂
porcx
01/31/2023, 4:14 PM
I am getting this error where it says
Copy code
Error: No instance of Session found. Make sure to call the Session.init method.
When i am using await Session.doesSessionExist(). Am I missing something ?
r
rp_st
01/31/2023, 4:14 PM
yea. You need to call session.init in the recipeList
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).