# "Wrong email or verification code" randomly for a increasing amount of users

**URL:** <https://community.auth0.com/t/wrong-email-or-verification-code-randomly-for-a-increasing-amount-of-users/89214>\
**Category:** Get Help\
**Created:** [August 22, 2022, 8:48pm UTC](https://community.auth0.com/t/wrong-email-or-verification-code-randomly-for-a-increasing-amount-of-users/89214 "2022-08-22T20:48:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![khaled](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/khaled/32/34310_2.png) [@khaled](https://community.auth0.com/u/khaled)\
**Post date:** [August 22, 2022, 8:48pm UTC](https://community.auth0.com/t/wrong-email-or-verification-code-randomly-for-a-increasing-amount-of-users/89214/1 "2022-08-22T20:48:13Z")

</div>

Hello,  
A few users have been complaining about inability to login to my application. I’m using passwordless authentication with a magic link sent to the users email. The flow works well on my side, but users continue to see errors. In the logs I see the the failure message is “Wrong email or verification code.” which occurs multiple times, until the user ends up maxing out their attempts.

I’m not really sure what is going on and how to fix it? It seems quite random. Any guidance here?

---

<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:** [August 22, 2022, 9:11pm UTC](https://community.auth0.com/t/wrong-email-or-verification-code-randomly-for-a-increasing-amount-of-users/89214/2 "2022-08-22T21:11:41Z")

</div>

Hi @khaled ,

Welcome to the Auth0 Community!

This error “Wrong email or verification code” could be caused by the passcode having expired. Do you want to try extending the OTP Expiry and see if it helps?

Please refer to [this](https://auth0.com/docs/authenticate/passwordless/authentication-methods/email-magic-link?_gl=1*x2s44b*rollup_ga*MjA5MTA5MTk2MC4xNjQ4NzQwNzU4*rollup_ga_F1G3E656YZ*MTY2MTE5NDQ2Mi4xMzMuMS4xNjYxMjAyMjA2LjUwLjAuMA..&_ga=2.88035480.1250087764.1661182294-2091091960.1648740758&_gac=1.54394586.1660859320.Cj0KCQjwxveXBhDDARIsAI0Q0x30n5WW6y0CXeE2Cy8AytffP7nckX6JHrCSTkhLviTx_zyXJxtzjLcaAm8iEALw_wcB#configure-the-connection) doc for how to update OTP expiry

Thanks!

---

<div class="post-metadata">

**Author:** ![khaled](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/khaled/32/34310_2.png) [@khaled](https://community.auth0.com/u/khaled)\
**Post date:** [August 22, 2022, 9:34pm UTC](https://community.auth0.com/t/wrong-email-or-verification-code-randomly-for-a-increasing-amount-of-users/89214/4 "2022-08-22T21:34:36Z")

</div>

Hi Lihua,  
Is “Wrong email or verification code” always due to an expired link? The users have been clicking the link almost immediately and I don’t think the link is expire. My expire time currently is about 20 min.

---

<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:** [August 24, 2022, 4:35pm UTC](https://community.auth0.com/t/wrong-email-or-verification-code-randomly-for-a-increasing-amount-of-users/89214/5 "2022-08-24T16:35:01Z")

</div>

Hi @khaled ,

I checked your tenant configuration from the backend. There are no rules/actions/hooks that could cause this issue. With OTP Expiry set to 20 mins, ideally, this issue should not happen.

Since this only happens to a few users, I suggest you create a support ticket and get on a call with the support team and the users facing this issue to find the root cause and solution.

Does that sound like a good plan?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 21, 2022, 5:21pm UTC](https://community.auth0.com/t/wrong-email-or-verification-code-randomly-for-a-increasing-amount-of-users/89214/6 "2022-12-21T17:21:56Z")

</div>


