using javascript sdk... auth sessions arent sticking through page refreshes. I cant find any info on this. do I need to call something to re-init the session or something?
Last active 7 months ago
6 replies
10 views
- CO
using javascript sdk… auth sessions arent sticking through page refreshes. I cant find any info on this. do I need to call something to re-init the session or something?
- CO
anyone?
- SV
That is strange, what is your code looking like right now?
- SV
You will need to have some code handling to check if a user is authenticated or not, and navigate them accordingly.
nhost.auth.isAuthenticated
ornhost.auth.onAuthStateChanged
- SV
@codejunky let me know if that helps
- CO
@svarto that helped. I wasnt checking onAuthStateChanged. exactly what I was lookin for. thanks!
Last active 7 months ago
6 replies
10 views