Problem statement:
How to resend the email verification email
Solution:
There are two ways to resend a verification email after the initial email is sent upon user creation.
- Auth0 Dashboard by going to User Management > Users > click on the user > Actions (dropdown menu) > Send Verification Email
- Using the Auth0 Management API UI
Post Request: End Point: https://{{auth0_domain}}/api/v2/jobs/verification-email
body:
{
"user_id": "auth0|62463410c0242d00699461c8"
}
response:
{
"type": "verification_email",
"status": "pending",
"created_at": "2022-03-31T23:08:05.612Z",
"id": "job_PyfpRHlmpkSoDmCv"
}
Check the status of the job is completed.
Get Request Endpoint: https://{{auth0_domain}}/api/v2/jobs/job_PyfpRHlmpkSoDmCv
{
"type": "verification_email",
"status": "completed",
"created_at": "2022-03-31T23:08:05.612Z",
"id": "job_PyfpRHlmpkSoDmCv"
}