/authorize 400 error on page refresh, using React provider

I’m encountering a 400 error whenever I refresh an application wrapped with the Auth0 React provider. The error appears to be triggered when the application calls /authorize.

Though the error is only raised after page refresh, I expect that it is failing silently beforehand. I am using Auth0 with Fauna, and mid-session calls are currently showing current_identity : null.

Has anyone else run into this issue? It seems like there aren’t too many ways I can fix this while still using the React provider.

Update, I’ve now discovered that if I wait long enough, the call works and my identity is provided. Any thoughts?

This turned out to be an allowed web origins issue. (Forgot to reset when I changed my port.) See this post on the community for more: Silent Authentication: 'does not have a registered origin'

1 Like

Glad you have figured it out and thanks for sharing with the rest of community!