https://supertokens.com/ logo
#support-questions
Title
# support-questions
r

ravaelamanov

05/13/2022, 3:24 PM
Hey there! I'm currently facing problems with checking if a session exists on the fronted (vanilla). All of the cookies are set correctly, but
supertokens.doesSessionExist()
would return
false
anyway. Any thoughts on this?
r

rp

05/13/2022, 3:26 PM
Hey @ravaelamanov
Can you upgrade to the latest version of the SDK and enable debug logs and show me the output of it on app start?
Sounds good. Can you make the sign in api call and show me the output of the logs?
And those are the backend logs. What about the frontend ones?
r

ravaelamanov

05/13/2022, 4:06 PM
I don't really know how to enable the logs on the frontend.
r

rp

05/13/2022, 4:07 PM
You can see how to do that on the same page where you see how to enable backend logs
Or if you can’t see it (cause of old cache), you can enable it by passing enableDebugLogs in the config of the frontend supertokens.init (latest version)
r

ravaelamanov

05/13/2022, 4:08 PM
these are the logs on /signinup
r

rp

05/13/2022, 4:09 PM
I wanna see those logs on the frontend 😅
That would help me see what’s wrong
r

ravaelamanov

05/13/2022, 4:14 PM
Done, but there are still no logs in the browser console
r

rp

05/13/2022, 4:16 PM
Which version of the SDK?
Frontend sdk*
r

ravaelamanov

05/13/2022, 4:17 PM
i'm loading it from cdn, and there's no version specified
r

rp

05/13/2022, 4:17 PM
Ok. Are you using axios?
r

ravaelamanov

05/13/2022, 4:18 PM
no, fetch
r

rp

05/13/2022, 4:18 PM
Ok. I’ll need you to make sure you have the latest version 😅
And use that. Show the logs
Otherwise it’s really hard to debug
r

ravaelamanov

05/13/2022, 4:19 PM
Well, I'll try )
r

rp

05/13/2022, 4:19 PM
🙂
Intuitively, I think you are not calling init in all the pages in your app. So in the place where you are calling the signinup API, it’s not adding interceptors to fetch
But the logs can confirm that
r

ravaelamanov

05/13/2022, 4:44 PM
You're right, i didin't call init on the page where i was calling signinup. Thanks for your help and time )
2 Views