Skip to content

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

Open

Description

@barrymichaeldoyle

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

  1. msjonker commented on Oct 16, 2020

    @msjonker

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions