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?
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.