# /authorize 400 error on page refresh, using React provider

**URL:** <https://community.auth0.com/t/authorize-400-error-on-page-refresh-using-react-provider/68007>\
**Category:** Get Help\
**Created:** [August 16, 2021, 2:28pm UTC](https://community.auth0.com/t/authorize-400-error-on-page-refresh-using-react-provider/68007 "2021-08-16T14:28:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmonninger](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lmonninger/32/28899_2.png) [@lmonninger](https://community.auth0.com/u/lmonninger)\
**Post date:** [August 16, 2021, 2:28pm UTC](https://community.auth0.com/t/authorize-400-error-on-page-refresh-using-react-provider/68007/1 "2021-08-16T14:28:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![lmonninger](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lmonninger/32/28899_2.png) [@lmonninger](https://community.auth0.com/u/lmonninger)\
**Post date:** [August 16, 2021, 10:50pm UTC](https://community.auth0.com/t/authorize-400-error-on-page-refresh-using-react-provider/68007/2 "2021-08-16T22:50:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![lmonninger](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lmonninger/32/28899_2.png) [@lmonninger](https://community.auth0.com/u/lmonninger)\
**Post date:** [August 16, 2021, 11:11pm UTC](https://community.auth0.com/t/authorize-400-error-on-page-refresh-using-react-provider/68007/3 "2021-08-16T23:11:04Z")

</div>

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'](https://community.auth0.com/t/silent-authentication-does-not-have-a-registered-origin/8836)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 17, 2021, 9:42am UTC](https://community.auth0.com/t/authorize-400-error-on-page-refresh-using-react-provider/68007/4 "2021-08-17T09:42:06Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 26, 2021, 9:34am UTC](https://community.auth0.com/t/authorize-400-error-on-page-refresh-using-react-provider/68007/5 "2021-08-26T09:34:00Z")

</div>


