How do I make an auth handler with Redux?
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?