Skip to content

How to include JWT authentication in the middleware #608

Open
@nicolabortignon

Description

@nicolabortignon

I'm trying to include JWT ( http://jwt.io/ ) token authentication in the boilerplate.
Let's pretend for a second that the autentication process serverside is already there.
What I do is calling API/login passing username and password and I return a token. From that point on, I'd like the middleware to attach this to every http calls.

 headers: {
                    'Authorization': `Bearer *TOKEN* `
 }

Where TOKEN is this.store.token variable defined in the redux auth.js.

How can I do that ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions