You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm trying out your lib and noticed that my auth state was gone once I reloaded the page but I still have a 'auth0.is.authenticated' cookie and should be logged in, do I need to do something after the page has been reloaded to reinit the auth-state or should I capture the state myself and handle it on the first onAuth-callback?
The text was updated successfully, but these errors were encountered:
Are you saying you are not authenticated when you reload or that appState is undefined? This lib does support page refreshes and ultimately the underlying auth0-spa package should handle that. If it is not, I can help troubleshoot. If it is the appState being undefined, looking over that again, it seems like it was a mistake for me to provide access to it like I did. It appears to be designed for preventing cross-site request forgery and only exists during the initial login and will always be undefined subsequently. I think I should just remove any access to and add an check based on the appState passed into the login options.
Hi,
I'm trying out your lib and noticed that my auth state was gone once I reloaded the page but I still have a 'auth0.is.authenticated' cookie and should be logged in, do I need to do something after the page has been reloaded to reinit the auth-state or should I capture the state myself and handle it on the first onAuth-callback?
The text was updated successfully, but these errors were encountered: