Auth
File Name : auth.js File Path : /server/routes/auth.js Auth route contains checkUser, login and logout routes for user. Also routes can be added which require authentication. These functionalities are included in Auth Controller.
login
GET
/api/auth/login
Request Body
Name | Type | Description |
---|---|---|
string | Email Id | |
password | string | Password |
Check User Existence
GET
/api/auth/checkuser
Request Body
Name | Type | Description |
---|---|---|
string | Email id | |
password | string | password |
logout
GET
/api/auth/logout
Request Body
Name | Type | Description |
---|---|---|
jwtAccessToken | string | Authorization |
Last updated