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:
1
https://api.sawolabs.com/api/v1/userverify/
Copied!
The body of this POST request would have two key-value pairs. The sample is shown below:
1
{
2
"user_id" : "a0aca1a0-7460-4e8e-8e46-3baf2c92423d",
3
"verification_token" : "ADdHrvkgi407qNfnAyrIVqokm3OWdKUCdj8y"
4
}
Copied!
Once the user is verified in our server and if the user is valid it would return the following response with response 200:
1
{
2
"user_valid": true
3
}
Copied!
if the user is not valid it would return the following response with response 400:
1
{
2
"user_valid": false
3
}
Copied!
if the user is not found it would return the following response with response 404:
1
"User not Found"
Copied!
Last modified 18d ago