I’m using the Auth0 React hooks SDK for my SPA and am noticing some confusing behavior when I reload my browser.
- The request/response to authorize and get a token takes 1-3 seconds. Is this normal?
-
Reloading will also log me out… but only randomly. It seems if I navigate to a different tab for a few minutes and/or my computer goes to sleep for a few minutes, and then when I get back to the SPA I reload the page and I get logged out.
Here are my
Auth0Provider
settings:<Auth0Provider domain={...} clientId={...} redirectUri={window.location.origin} audience={...} useRefreshTokens={true} >