zen-assignment-webTask-UserAuth
heroku URL : https://whispering-garden-30057.herokuapp.com/
-
url : To check server is alive https://whispering-garden-30057.herokuapp.com/user
method: GET
-
url : To Register userhttps://whispering-garden-30057.herokuapp.com/user/register
method: POST
Body : {name,email,password}
-
url : To Login userhttps://whispering-garden-30057.herokuapp.com/user/login
method: POST
Body : {email,password}
-
url : If user, Forgot passwordhttps://whispering-garden-30057.herokuapp.com/user/forgot-password
method: POST
Body : {email} (check email for resetCode_Url)
-
url : To reset passwordhttps://whispering-garden-30057.herokuapp.com/user/resetPassword
method: POST
Body : {email,id,resetCode,password} (resetcode & jwt code are received from email,email and id are parsed from jwt token, password is the newPassword..)
Headers: Authorization (send jwt token received from email,format-> BEARER "jwttoken")