# Default Email Verification email does not verify user

**URL:** <https://community.auth0.com/t/default-email-verification-email-does-not-verify-user/97811>\
**Category:** Get Help\
**Tags:** emails, management-api\
**Created:** [January 10, 2023, 6:40am UTC](https://community.auth0.com/t/default-email-verification-email-does-not-verify-user/97811 "2023-01-10T06:40:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adeel](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adeel/32/34106_2.png) [@adeel](https://community.auth0.com/u/adeel)\
**Post date:** [January 10, 2023, 6:40am UTC](https://community.auth0.com/t/default-email-verification-email-does-not-verify-user/97811/1 "2023-01-10T06:40:11Z")

</div>

Hi everyone.

**Environment**  
Next js

**Issue**

1. User Signs up
2. User lands inside website on ‘/unverified’ page
3. We ask them to verify you email first before proceeding
4. At the same time, Auth0 automatically sends the Verification Email.
5. User open their email and clicks on the verification link
6. Link open up and url turns to something like this:
7. 

> message=Your%20email%20was%20verified.%20You%20can%20continue%20using%20the%20application.&success=true&code=success)

8. After verification we land back on website
9. However, user still does not get verified

- To check whether user is verified or not we are doing this:

```auto
import { useUser } from "@auth0/nextjs-auth0";
  const auth0User = useUser();
  if (auth0User.user?.email_verified){ 
// User verified
}

```

- We also get success logs in Monitoring → Logs i.e.

> “description”: “Your email was verified. You can continue using the application.”,

- Moreover, in User Management → Users,
- The User email status remains `Pending`
- However, `auth0User.user?.email_verified` returns `undefined` so we cannot proceed further
- It is not even false…

**Twist In The Story**  
We have a button to resend email  
If user clicks on it we send an email through management API  
That email works perfectly and verifies the account  
`auth0User.user?.email_verified` returns `true` and user can use the app

**Conclusion**

- Default email sent by Auth0 does not verify account although the logs say otherwise ?  
When we manually resend the email it works fine and verifies the account.  
However, apparently there is not difference in the generated verification links

- We can toggle enable/disable email templates  
If we disable, we do not get default email but then we also cannot send an email by management api as well

In short, fist default email does not work. User has to resend email and then everything works smoothly…

Waiting for an answer.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nick.hedberg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nick.hedberg/32/50847_2.png) [@nick.hedberg](https://community.auth0.com/u/nick.hedberg)\
**Post date:** [September 14, 2023, 3:32am UTC](https://community.auth0.com/t/default-email-verification-email-does-not-verify-user/97811/2 "2023-09-14T03:32:19Z")

</div>

I am also running into this issue.

The first automatically sent email verification works but doesn’t mark the user’s email\_verified to true in auth0. My verify script is running on my DB connection though, so the user is verified in my DB but not in Auth0.

If I trigger a validation email for the user from the dashboard, it will work. It will work for both auth0 and my db if I don’t ever use the first one.

Does anyone have an idea what might be misconfigured?

---

<div class="post-metadata">

**Author:** ![nick.hedberg](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nick.hedberg/32/50847_2.png) [@nick.hedberg](https://community.auth0.com/u/nick.hedberg)\
**Post date:** [September 14, 2023, 3:35am UTC](https://community.auth0.com/t/default-email-verification-email-does-not-verify-user/97811/3 "2023-09-14T03:35:15Z")

</div>

I did see this similar issue but connecting back to the auth0’s API from the verify script really feels a little crazy to me [Email verification not working - #5 by lukasz.blaszynski](https://community.auth0.com/t/email-verification-not-working/17630/5)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 25, 2024, 10:40pm UTC](https://community.auth0.com/t/default-email-verification-email-does-not-verify-user/97811/4 "2024-11-25T22:40:18Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
