React SPA using auth0-react spams the authorize endpoint when not logged in

Looking at the Chrome network debug window when logged in I’m seeing the authorize endpoint being hit every few seconds. Is this intended behavior like some sort of retry mechanism?

I’m also seeing “Failed silent auth” spammed in the logs, wondering if this is related.

Hi,
If a token expires and isn’t found in cache, it will trigger the authorize endpoint again to get a new one.
One way to handle this would be to increase the token expiry time

Hi @walker7811,

It looks like your application is making multiple silent auth calls. When the Login Required error is returned, the user must be redirected to the Auth0 login page without the prompt=none parameter to authenticate. Please see here for more: Configure Silent Authentication

Thanks,

Mary Beth

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