# How to use "Email Verification (using code)"

**URL:** <https://community.auth0.com/t/how-to-use-email-verification-using-code/82980>\
**Category:** Get Help\
**Created:** [May 5, 2022, 6:23pm UTC](https://community.auth0.com/t/how-to-use-email-verification-using-code/82980 "2022-05-05T18:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoff2](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/geoff2/32/33195_2.png) [@geoff2](https://community.auth0.com/u/geoff2)\
**Post date:** [May 5, 2022, 6:23pm UTC](https://community.auth0.com/t/how-to-use-email-verification-using-code/82980/1 "2022-05-05T18:23:52Z")

</div>

Auth0 says they have a “Email Verification ( **using code** )” feature, but I can’t seem to get it to work.

The default “Email Verification ( **using Link** )” has a “Template Enabled” switch that controls whether the user gets an email with the “Magic Link”. (see screenshot below).

But when I switch the Email Template to “Email Verification **(using code)**” it does not have such a switch (see second screenshot further below).

It looks like maybe I need to enable something called “code-based email verification flow”.

But I can’t find any documentation on how to do this.

Can someone please provide a little guidance on how to use the Email Verification ( **using code** ) option which Auth0 teases as a feature we can use…???  
.  
.  
.  
Email Verification ( **using Link** )

 ![image](https://global.discourse-cdn.com/auth0/original/3X/4/b/4b8ca5cfbbd9cf52e1792396aa3e33b7a899e88f.png)  
.  
.  
.  
Email Verification ( **using code** )  
 ![image](https://global.discourse-cdn.com/auth0/original/3X/7/c/7c1042f936c5aa72ce5b47b311b41f9a3b373c1a.png)

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [May 5, 2022, 8:54pm UTC](https://community.auth0.com/t/how-to-use-email-verification-using-code/82980/3 "2022-05-05T20:54:06Z")

</div>

Hi @geoff2 ,

Thank you for posting this topic on the Auth0 Community!

Sorry that the wording for this template is kind of confusing. Email verification with code does not have a “Template Enabled” switch and it isn’t intended for the regular email verification flow. It was added to handle the following use cases:

1. In Adaptive MFA, when the user is not enrolled with an MFA factor
2. Newly introduced email verification flows with Azure AD/ADFS

Here are two articles for your reference:

1. [Email Verification for Azure AD and ADFS](https://auth0.com/docs/authenticate/identity-providers/enterprise-identity-providers/azuread-adfs-email-verification)
2. [Enable Adaptive MFA](https://auth0.com/docs/secure/multi-factor-authentication/adaptive-mfa/enable-adaptive-mfa)

Hope that helps!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [November 8, 2022, 5:06pm UTC](https://community.auth0.com/t/how-to-use-email-verification-using-code/82980/4 "2022-11-08T17:06:57Z")

</div>


