Links

How to verify a user?

Need to verify a user

Security is one of the most important key factors that we look into, and in SAWO now, we are providing another layer of security where you can verify if the user that is trying to log in is legit or not.

How to do it?

We have created a POST request method with the endpoint:
https://api.sawolabs.com/api/v1/userverify/
The body of this POST request would have two key-value pairs. The sample is shown below:
{
"user_id" : "a0a12430-7460-4a8e-2166-3baf2c43423d",
"verification_token" : "km07qNfnAADdHrv3OWdKUkgi4yrIVqoCdj8y"
}
Once the user is verified in our server and if the user is valid it would return the following response with response 200:
{
"user_valid": true
}
if the user is not valid it would return the following response with response 400:
{
"user_valid": false
}
if the user is not found it would return the following response with response 404:
"User not Found"