Okta redirection fails with React HashRouter

My App is using HashRouters now I want to integrate OKTA Authentication but that issue is Okta does not allow to add # in the redirection URL. As a result after successful login, I am landing on a 404 unknown pages. I don’t want to use change to Browser routers

Could anybody suggest to me how to deal with #Routes with OKta redirection…?

If possible can you please provide an example?

Hi there. Take a look at our React sample app for an example of how we implement react router - here is a link specifically to the routing code:

I hope that helps!

You cannot use # in a redirect URL because of OAuth, not Okta. See RFC 6749 - The OAuth 2.0 Authorization Framework.

The endpoint URI MUST NOT include a fragment component