Implement user's login and signup using JWT authentication
Each user must have
- email(unique)
- name
- username(unique)
- password
Optional fields are
Upon successful registration/login on the server end, client must receive a JWT token.
The JWT token should be encoded using user's ObjectId, username and email.
You must design endpoints for signup, login, current-user and profile fetch/update on your own.
Implement user's login and signup using JWT authentication
Each user must have
Optional fields are
Upon successful registration/login on the server end, client must receive a JWT token.
The JWT token should be encoded using user's ObjectId, username and email.
You must design endpoints for signup, login, current-user and profile fetch/update on your own.