OTP is useless if you cannot verify, isn’t it? Lets see how easy it is to verify the OTP. no local storage required!
POST `https://api.nomado.eu/2fa/verify`
You can choose one of the authentication methods referenced here.
The JSON object representing the OTP to verify. Should be included in request body.
options | description | required | default value |
---|---|---|---|
number | string E164 formatted mobile number |
Yes | |
token | string The OTP to verify |
Yes |
status code | description |
---|---|
200 | success Request sent successfully |
400 | bad request Incorrect or missing parameters |
401 | unauthorized Invalid credentials or incorrect authentication method |
OTP as the name suggest, Once verified or expired, will be destroyed.
Headers
Content-type: application/json
Authorization: BASIC base64encodedCredentials
Body
{
"number": "32412345678",
"token": "1234"
}
{
"code": 200,
"message": "OK",
"verify": true
}