https://supertokens.com/ logo
Title
p

porcx

01/31/2023, 2:05 PM
@rp 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

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 🙂
I am getting this error where it says
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

01/31/2023, 4:14 PM
yea. You need to call session.init in the recipeList