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

How to store the auth token in a cookie called 'token'? #181

Open
barrymichaeldoyle opened this issue Oct 2, 2020 · 1 comment
Open

Comments

@barrymichaeldoyle
Copy link

Hey guys, I'm under a lot of pressure at work and one of the backend devs has asked me if I could store the authentication token in a cookie so that it is valid for the session (needs to go into the headers of a service). We can't just magically add auth info to http links.

Is there a way in the createUserManager (or some other quick way) for me to store the auth token in a cookie called token?

@msjonker
Copy link

You could write a reducer that handles https://github.com/maxmantz/redux-oidc/blob/master/docs/Actions.md#user_found and stores whatever you need from the action in a cookie.

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

2 participants