Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually update the oidcUser object with extra info #195

Open
nagiatzi opened this issue Oct 19, 2021 · 0 comments
Open

Manually update the oidcUser object with extra info #195

nagiatzi opened this issue Oct 19, 2021 · 0 comments

Comments

@nagiatzi
Copy link

Based on the documentation, the middleware checks on startup whether or not the user is present in said storage, and passes it in to the reducer, if it finds it. Dispatches of redux-oidc/USER_FOUND are triggered and we have a new persistent user in the store.

If we would like to append some more info to that user(etc one more profile setting based on calculations), is there a 'redux-oidc' way to do that?

I mean obviously, I could make my own reducer that evaluate the response of the access token, and make it persist through refreshes but I would like to utilize the nice loadUser functionality that already happens between the tabs if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant