Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Query Parameters
The email address to verify
Body
application/json
Verification token sent to the user's email
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/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://server26-dot-royalti-project.uc.r.appspot.com/auth/verify \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "token": "<string>"
}'{
  "success": true,
  "message": "<string>",
  "data": {}
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/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