Problem with Auth state and redirect


#1

Hello,
When I close and then reopen my app the first state it goes to is login even though I have already created an authentication system for signup/login. I have to wait ~2 seconds before the app realizes that I’m an authenticated user then proceeds accordingly. How can get the Auth state of the user beforehand so I can redirect accordingly?

Thank you,
Henry


#2

I have simmilar problem. I have to check users auth state before everything else happens.
Anyone any idea???

thx


#3

@BioPhoton I think this link may help us: Login user Authentication and localstorage