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?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct