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
{{ message }}
Repository navigation
How to store the auth token in a cookie called 'token'? #181
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?
Activity
msjonker commentedon Oct 16, 2020
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.