localStorage issue in angular UI with Auth0

161 Views Asked by At

I have a windows application from which users will launch a particular path(mysite.com/{integerid}/home) on my angular UI.

I have auth0 authentication setup on my angular UI, so as soon as that above URL launches, I save the parameter integerid in localStorage, then the browser redirects to microsoft login for auth0, then comes back to the callback URL where I am retrieving integerid and back to mysite.com/{integerid}/home.

The problem is due to redirect away from mysite.com I think I am losing the value I saved as integerid in localStorage, so what happens is after authentication the URL that the user is on the URL mysite.com/null/home

any idea how I can get around the problem?

0

There are 0 best solutions below