elixir-ecommerce-api icon indicating copy to clipboard operation
elixir-ecommerce-api copied to clipboard

Auth

Open lmeireles opened this issue 5 years ago • 1 comments

Auth System

  • [x] Apply password encryption.
  • [ ] Define the custom information encrypted in the JWT tokens.
  • [x] Apply JWT for user tokens.

Endpoints Auth

  • [x] POST /v1/auth/sign_in - Login user into platform and return a JWT token.
  • [x] POST /v1/auth/sign_up - Register user into platform and return a JWT token.
  • [ ] POST /v1/auth/forgot_password - Sends user an email with a recovery link (with token).
  • [ ] POST /v1/auth/change_password - Update user password with a recovery token.

lmeireles avatar Jan 02 '20 14:01 lmeireles

I'm thinking about JWT for the token system. And using email/password for authentication.

  • Password rules
    • Minimum length: 6

lmeireles avatar Jan 02 '20 17:01 lmeireles