DEV Community

Discussion on: OIDC Authentication with React & Identity Server 4

Collapse
jinyanghuang profile image
Jinyang (Michael) Huang

I noticed that it is due to the user info being reset every time. So it is redirected to login page and then main page. Is there a way to solve this?

Collapse
tappyy profile image
Andy Author

You could persist the user data in local storage or use something like redux-persist to manage the state rehydration for you :)

Collapse
anjkr profile image
anj-kr

Are you able to resolve this ? I'm facing the same issue when reloading the application, it is triggering the flow again. Please let me know

Thanks - Dan