Long request/response times and random logouts with React SDK

I’m using the Auth0 React hooks SDK for my SPA and am noticing some confusing behavior when I reload my browser.

  1. The request/response to authorize and get a token takes 1-3 seconds. Is this normal?
  1. 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}
     >
    

It appears my issue was related to a browser extension that was interfering with my cookies. I got rid of it and things began to work better.

3 Likes

Thanks for following up!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.