Implement an endpoint for the forget password workflow
Flow :
User fetches GET v1/user/forget-password, returns 200 if user is present and authenticated and returns a Token, (check how this is generated for user verification)
User fetches POST v1/user/forget-password and gives new password and it is saved in db, returns new auth token. (similar to login flow)
Implement an endpoint for the forget password workflow
Flow :
v1/user/forget-password
, returns 200 if user is present and authenticated and returns aToken
, (check how this is generated for user verification)v1/user/forget-password
and gives new password and it is saved in db, returns new auth token. (similar to login flow)