You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call my signinRedirect function, I pass in the localstorage as a url state parameter. I then sign in and get redirected to my app to complete the auth flow with a signinCallBack function. The issue is that the localstorage variable gets updated as I am redirected so by the time I am redirected to my app, the localstorage variable I passed over is undefined.
I need to pass over the localstorage like this because I am changing domains when I get redirected after my login.
My current set up is a react app running on localhost:3000, this initiates the login. I then am redirected to keycloak and login with a valid user. I then get redirected to my main app running on localhost:4200 and pass in the localstorage to update the localstorage on localhost:4200 and complete the login process.
Any help is appreciated!
The text was updated successfully, but these errors were encountered:
Not sure if understand you correctly you use mgr.signinRedirect({state})? if so, that state can be accessed on the user object returned by signinRedirectCallback
When I call my signinRedirect function, I pass in the localstorage as a url state parameter. I then sign in and get redirected to my app to complete the auth flow with a signinCallBack function. The issue is that the localstorage variable gets updated as I am redirected so by the time I am redirected to my app, the localstorage variable I passed over is undefined.
I need to pass over the localstorage like this because I am changing domains when I get redirected after my login.
My current set up is a react app running on localhost:3000, this initiates the login. I then am redirected to keycloak and login with a valid user. I then get redirected to my main app running on localhost:4200 and pass in the localstorage to update the localstorage on localhost:4200 and complete the login process.
Any help is appreciated!
The text was updated successfully, but these errors were encountered: