Authentication

Login

Request:

POST

/auth

Payload

{ email: string, password: string }

Response:

Status Response
200
{
"accessToken": String
"expiresIn": Int,
"user": {
"firstName": String,
"lastName": String,
"email": String,
"role": String,
"id": ObjectId
}
}
401 {« error »: » Invalid credentials « }
500 {« error »:Error.toString()}