Samagra-Development / user-service

Additional Services related to user management in eSamwad
MIT License
5 stars 22 forks source link

Login or Register API through OTP #71

Closed ChakshuGautam closed 1 year ago

ChakshuGautam commented 1 year ago

Description

User Journey

  1. If the user is not registered - register a user and log them in.
  2. If the user is registered - log in a user.

Endpoing - /login/otp

{
    "loginId": <phone number>,
    "password": <OTP>,
    "applicationId": <appId>
}

Internal Implementation

Reset the pass to salt + OTP. Update the password every login.

choxx commented 1 year ago

Fixed with PR #72 & #73