Hey there! I'm currently facing problems with chec...
# support-questions
r
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
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
I don't really know how to enable the logs on the frontend.
r
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
these are the logs on /signinup
r
I wanna see those logs on the frontend 😅
That would help me see what’s wrong
r
Done, but there are still no logs in the browser console
r
Which version of the SDK?
Frontend sdk*
r
i'm loading it from cdn, and there's no version specified
r
Ok. Are you using axios?
r
no, fetch
r
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
Well, I'll try )
r
🙂
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
You're right, i didin't call init on the page where i was calling signinup. Thanks for your help and time )
2 Views