Problem with Auth state and redirect


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,


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



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