Endpoint for authentication using an email and password for a user already registered at Verifiable. In return you will receive an access token that can be used in the following API calls.
Note: The account may require a password change for successful authentication. If password change is required and newPassword is not set the server returns 409 Conflict.
If newPassword is set but the current password is not correct the server returns 403 Forbidden.
Note: If newPassword is set it must be different than the current password. If the password is the same the server returns 400 Bad Request.
Note: When newPassword is set and the request returns 200 Ok, all the active access tokens will be invalidated.
Success
Bad Request
Unauthorized
Forbidden
Conflict
Server Error
{- "email": "john.doe@mail.com",
- "password": "secret",
- "newPassword": "even-more-secret",
- "timeToLive": "00:30:00"
}{- "tokenId": "0847312d-19fe-49d2-9e21-5825735b511a",
- "token": "MtetyFcIW...xgXXX-Z4yy"
}