Skip to main content

Login

POST /login: Login to the app provided the correct user credentials
{
"email": string,
"password": string,
}

Example Request​

Body​

{
"email": "nestor@gmail.com",
"Password": "abc123"
}

Possible Responses​

Immediate Success​

{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1OTU4MjQyNzUsImlhdCI6IjIwMjAtMDctMjdUMDA6MjY6MTUuNzg5NTg0Mi0wNDowMCIsInN1YiI6ImNocmlzIn0.5US2_ITKcfgkpEbfsR-gxXbGPFY6XsgJPcGA5qaBD1M"
}

Failure​

{
"message": "No user found",
"stack": "Error: No user found"
}