# Refreshing page gets stuck on "loading"

**URL:** <https://community.auth0.com/t/refreshing-page-gets-stuck-on-loading/48535>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [August 24, 2020, 3:51am UTC](https://community.auth0.com/t/refreshing-page-gets-stuck-on-loading/48535 "2020-08-24T03:51:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prateek1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prateek1/32/13390_2.png) [@prateek1](https://community.auth0.com/u/prateek1)\
**Post date:** [August 24, 2020, 3:51am UTC](https://community.auth0.com/t/refreshing-page-gets-stuck-on-loading/48535/1 "2020-08-24T03:51:02Z")

</div>

My issue is exactly same as

> [@Refreshing page cause "loading..." stuck forever](https://community.auth0.com/t/refreshing-page-cause-loading-stuck-forever/39406):
>
> Hello, I am building a React app based on React quickstart found here on Auth0 docs . Login/Logout and token generation/retrieval from backend API works well with google, twitter and email+pwd. However, when I refresh the page on browser on an already logged user I get a forever “loading…” situation resulting from this line of code (coming from the Auth0 react template) const { loading} = useAuth0(); // LOADING IS FOREVER TRUE WHEN REFRESHING PAGE ON AUTHENTICATED USER if (loading) { …

I am pretty sure that I have added list of allowed URLs to the application settings

 ![image](https://global.discourse-cdn.com/auth0/original/3X/3/9/391a8fe04776c36b3cfe5b9caf3be9881fa29aab.png)

My react app is deployed on firebase on the domain https://\*.saniot.in  
I do not see this behavior on when I run the development build on localhost

I am not sure what am I missing here.

---

<div class="post-metadata">

**Author:** ![karen1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/karen1/32/18279_2.png) [@karen1](https://community.auth0.com/u/karen1)\
**Post date:** [August 31, 2020, 3:08pm UTC](https://community.auth0.com/t/refreshing-page-gets-stuck-on-loading/48535/2 "2020-08-31T15:08:58Z")

</div>

Good afternoon,

Have you check the logs to see if there are any errors or have used console.log to see if there’s any indication of what might be incorrect?

Do you have any rules (if so, I recommend real time logs for troubleshooting) or are you using an external idp?

Thanks!

---

<div class="post-metadata">

**Author:** ![prateek1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prateek1/32/13390_2.png) [@prateek1](https://community.auth0.com/u/prateek1)\
**Post date:** [August 31, 2020, 3:28pm UTC](https://community.auth0.com/t/refreshing-page-gets-stuck-on-loading/48535/3 "2020-08-31T15:28:47Z")

</div>

Console presents the same error which is mentioned in the link I’ve refered.

The error is -

Failed to load resource: the server responded with a status of 400 ()

https://MY\_DOMAIN.auth0.com/authorize?client\_id=MY\_CLIENT\_ID&redirect\_uri=http%3A%2F%2Flocalhost%3A3000&scope=openid%20profile%20email&response\_type=code&response\_mode=web\_message&state=MY\_STATE&nonce=MY\_NONCE&code\_challenge=MY\_CODE&code\_challenge\_method=S256&prompt=none&auth0Client=MY\_AUTH0\_CLIENT

Also similar to the above issue in my case the page loads after a couple of minutes of wait

I am not using any external IDP. The auth method is simple email password from Auth0 and neither I’m using any rules

---

<div class="post-metadata">

**Author:** ![a.somaraju](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/a.somaraju/32/15705_2.png) [@a.somaraju](https://community.auth0.com/u/a.somaraju)\
**Post date:** [September 14, 2020, 4:32am UTC](https://community.auth0.com/t/refreshing-page-gets-stuck-on-loading/48535/4 "2020-09-14T04:32:27Z")

</div>

I am having exactly the same issue. Any solutions…?
