Verify a magic link token
Verifies a token received in the magic link email. This is for the UI, not to be used programmatically.
POST /api/login/verify
curl \
-X POST http://localhost:4000/api/login/verify \
-d '{"token":"abcdefghijk"}'
Request examples
{
"token": "abcdefghijk"
}
Response examples (200)
{
"role": "customer_read_only",
"email": "joe@example.com",
"token": "SFMyNTY.g2gDbQAAACQyZDc3NDhkMy1jNzAyLTQ0ZTItODI3NS1jMDVhM2Y2NWY1ZGVuBgDRctrbiQFiAAFRgA.n3giyccj8XtTKgQDVO24xz8GkyIOEURO1FgwTeEgl5Y",
"user_id": "33b964ce-b1fa-47fa-a97d-0c8c0c56ed6c",
"user_name": "Joe Smith",
"account_id": "0e0c22e9-334b-4a86-bafb-63055a0300dd"
}
Response examples (200)
{
"role": "customer_read_only",
"email": "joe@example.com",
"token": "SFMyNTY.g2gDbQAAACQyZDc3NDhkMy1jNzAyLTQ0ZTItODI3NS1jMDVhM2Y2NWY1ZGVuBgDRctrbiQFiAAFRgA.n3giyccj8XtTKgQDVO24xz8GkyIOEURO1FgwTeEgl5Y",
"user_id": "33b964ce-b1fa-47fa-a97d-0c8c0c56ed6c",
"user_name": "Joe Smith",
"account_id": "0e0c22e9-334b-4a86-bafb-63055a0300dd"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (400)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}
Response examples (401)
{
"error": "Error Reason"
}