curl --request POST \
--url https://api.royalti.io/auth/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'{
"success": true,
"message": "<string>",
"data": {}
}Verify a user’s email address using a verification token
curl --request POST \
--url https://api.royalti.io/auth/verify \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"token": "<string>"
}
'{
"success": true,
"message": "<string>",
"data": {}
}const response = await fetch('https://api.royalti.io/auth/verify', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
"token": "sample-token"
})
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
The email address to verify
Verification token sent to the user's email