Sign in
Log inSign up

How do I make an auth handler with Redux?

Facundo's photo
Facundo
·Oct 14, 2016

So I have an API that have the next routes for handling user auth:

  • server/api/login: accepts user email and password via post, returns access_token and refresh_token if valid.
  • server/api/me: accepts access_token via GET parameters, returns { email, username } if access_token is valid.

How do I handle user states with redux?