# Reloading a Customized Login/Signup or Password Reset Page

**URL:** <https://community.auth0.com/t/reloading-a-customized-login-signup-or-password-reset-page/85677>\
**Category:** Get Help\
**Tags:** state\
**Created:** [June 22, 2022, 2:47am UTC](https://community.auth0.com/t/reloading-a-customized-login-signup-or-password-reset-page/85677 "2022-06-22T02:47:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlx-dev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nlx-dev/32/34345_2.png) [@nlx-dev](https://community.auth0.com/u/nlx-dev)\
**Post date:** [June 22, 2022, 2:47am UTC](https://community.auth0.com/t/reloading-a-customized-login-signup-or-password-reset-page/85677/1 "2022-06-22T02:47:21Z")

</div>

Hi,

I have a two working react applications that customizes the login/signup and reset password flow.

However, if a user reloads the page manually a 404 “Not Found” is returned.

Reading through the documentations, it appears that the state parameter is invalid and this check is executed before the react-app. What’s interesting is this test does not fail using the universal login widget.

How would I handle this 404 “Not found” on a reload?

Thank you

---

<div class="post-metadata">

**Author:** ![pacopepe](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@pacopepe](https://community.auth0.com/u/pacopepe)\
**Post date:** [March 8, 2023, 3:24pm UTC](https://community.auth0.com/t/reloading-a-customized-login-signup-or-password-reset-page/85677/2 "2023-03-08T15:24:38Z")

</div>

have you found any solution?

---

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [December 4, 2024, 11:32pm UTC](https://community.auth0.com/t/reloading-a-customized-login-signup-or-password-reset-page/85677/3 "2024-12-04T23:32:20Z")

</div>

Hello @nlx-dev!

If you are receiving a 404 error on refresh what is most likely happening is the url is put in incorrectly but can be reached the first time through an automatic redirect. I would suggest checking your network activity when refreshing the page to see if the refresh causes the url to change.

I also found some other reasons on why things may occur on refresh that are unexpected.

[https://community.auth0.com/t/why-is-authentication-lost-after-refreshing-my-single-page-application/56276](https://community.auth0.com/t/why-is-authentication-lost-after-refreshing-my-single-page-application/56276)

> [@How to keep login session when refreshing page in SPA](https://community.auth0.com/t/how-to-keep-login-session-when-refreshing-page-in-spa/60858):
>
> Hi there, Following the instruction on [Auth0 React SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/react), I am able to let user login to my react SPA. I am using isAuthenticated from useAuth0(); to check if user is logged in. This works well when user navigates among pages. However if user refresh browser, isAuthenticated return false , so user has to login again. I wanna keep login session for a period of time, and wanna rely on Auth0 to do that job without launching my own server to manage the session. Is there a way t…

I hope this helps!

Best,  
Alex

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 18, 2024, 11:33pm UTC](https://community.auth0.com/t/reloading-a-customized-login-signup-or-password-reset-page/85677/4 "2024-12-18T23:33:14Z")

</div>

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