Overview
This article describes how to create a custom email verification flow and still have Auth0 send the verification email.
Applies To
- Custom Email Verification
Solution
To achieve this, use the “Send an email address verification email” job.
When choosing to implement a custom verification flow using the “Send an email address verification email” job, use the POST /API/v2/jobs/verification-email.
Auth0 then sends the email to the user. It can be as simple as sending the user ID in the body of the call but there are other parameters available in the body.
{
"user_id": "string",
"client_id": "string",
"identity": {
"user_id": "string",
"provider": "google-oauth2"
},
"organization_id": "string"
}