Verifying Tokens

Verifying that the clicked link in an e-mail is valid and retrieve its associated data.
Verify Email Token

Invalid token reasons

  • "not_found": Token not found, perhaps tried to make their own token or their token expired a long time ago and has since been cleaned up.
  • "expired": The token has expired.
  • "already_consumed" : This token has already been marked as "consumed".
  • "invalid_purpose" : The purpose of the token does not match the purpose passed in your request.
In the case of "expired", "already_consumed" and "invalid_purpose" the token's data will still be returned including any user_data you may have passed. In case of "not_found" this is of course not possible.