This is a REST API developed using Node.js that implememts the user authentication. Following are the functionalities available:
- SignUp
- Login
- JWT Auth
- Logout from current/other/all devices
- Node.js
npm install
npm start
Route: http://localhost:3000/user/register/
Request Type: POST
Body:
{
"username":"johndoe",
"name": "John Doe",
"email":"johndoe@gmail.com"
"password":"qwertyuiop"
}
Route: http://localhost:3000/user/login/
Request Type: POST
Body:
{
"username":"johndoe",
"password":"qwertyuiop"
}
Route: http://localhost:3000/user/test/
Request Type: GET
Route: http://localhost:3000/user/logout/
Request Type: GET
Route: http://localhost:3000/user/logout-all-devices/
Request Type: GET
Route: http://localhost:3000/user/logout-other-devices/
Request Type: GET