# What is expiry and attemp-failed of "Generate one-time password"'s action in flows?

**URL:** <https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605>\
**Category:** Get Help\
**Tags:** other, community-topic\
**Created:** [December 17, 2024, 3:58am UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605 "2024-12-17T03:58:45Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![thanasarut.sasismit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thanasarut.sasismit/32/60275_2.png) [@thanasarut.sasismit](https://community.auth0.com/u/thanasarut.sasismit)\
**Post date:** [December 17, 2024, 3:58am UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/1 "2024-12-17T03:58:45Z")

</div>

I have tried to implement using “Generate one-time password” action in flows.  
but I would like to know what is expiry time of this generated code and has auth0 have failed-attemp couter or not?

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 17, 2024, 5:16pm UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/3 "2024-12-17T17:16:07Z")

</div>

Hi @thanasarut.sasismit,

Are you following this guide here: [Email OTP Verification with SendGrid Template](https://developer.auth0.com/resources/templates/forms/email-otp-verification-with-send-grid)

If not, can you provide what you are following? I need to know where to look to better answer your questions 🙂

Thanks,

Mary Beth

---

<div class="post-metadata">

**Author:** ![thanasarut.sasismit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thanasarut.sasismit/32/60275_2.png) [@thanasarut.sasismit](https://community.auth0.com/u/thanasarut.sasismit)\
**Post date:** [December 18, 2024, 4:13am UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/4 "2024-12-18T04:13:13Z")

</div>

@marybeth.hunter  
no, I’m not using otp verification with sendgrid. but I’m using aws sns provider.  
but actually my question is about component which refered below

[Data verification](https://auth0.com/docs/customize/forms/flows/integrations/data-verification) (generate otp) → what how can I know the expiry time of this code ? can we configure it ? → this one i found that it’s 5mins without configurable for now.  
[Data verification](https://auth0.com/docs/customize/forms/flows/integrations/data-verification) (verify otp) → what is number of counter for verify-failed ? can we configure it ? → this one seem to be max 10 time retries without configuration for now as well.

correct me if I’m wrong.

also I would like to know similar question for expiry time & max retry for verify, in the scenario that use click forget password feature on Universal Login as well.

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 19, 2024, 10:50pm UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/5 "2024-12-19T22:50:54Z")

</div>

Hi @thanasarut.sasismit,

I have reached out internally about the generate OTP expiry/configuration and verify OTP counter for verify failed/configuration. I will update you when I hear back on those.

Regarding the TTL/expiry time for the link in the password reset email users receive, the default is 60seconds. This is configurable. Please see here: [Change Users' Passwords](https://auth0.com/docs/authenticate/database-connections/password-change#password-reset-email). The link is valid for one time only.

Thanks,

Mary Beth

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 19, 2024, 11:36pm UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/7 "2024-12-19T23:36:46Z")

</div>

Hi @thanasarut.sasismit,

I have heard back from the team on this. Please see the below:

The expiry of the OTP is always 5 minutes and it is not configurable at this time.

The number of tries the verify OTP allows is not configurable but is something currently being developed.

Please let me know if you have any additional questions!

Thanks,

Mary Beth

---

<div class="post-metadata">

**Author:** ![thanasarut.sasismit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thanasarut.sasismit/32/60275_2.png) [@thanasarut.sasismit](https://community.auth0.com/u/thanasarut.sasismit)\
**Post date:** [December 20, 2024, 3:02am UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/8 "2024-12-20T03:02:36Z")

</div>

Thanks @marybeth.hunter for your reply,

but I may missed on my question a bit.

for the forget password (reset password), in case that my tenant configure to use OTP not magic link. so what is TTL for otp code that auth0 generated and send via both email and sms provider ?  
similar with #retries…

---

<div class="post-metadata">

**Author:** ![thanasarut.sasismit](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/thanasarut.sasismit/32/60275_2.png) [@thanasarut.sasismit](https://community.auth0.com/u/thanasarut.sasismit)\
**Post date:** [December 24, 2024, 5:37am UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/9 "2024-12-24T05:37:58Z")

</div>

@marybeth.hunter  
any update information here ?

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 30, 2024, 3:16pm UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/10 "2024-12-30T15:16:27Z")

</div>

Hi @thanasarut.sasismit,

Appreciate your patience here during the holidays!

Are you talking about this feature here: [Verify Emails using Auth0](https://auth0.com/docs/manage-users/user-accounts/verify-emails#one-time-passwords-early-access-) ?

Thanks,

Mary Beth

---

<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:** [January 13, 2025, 3:17pm UTC](https://community.auth0.com/t/what-is-expiry-and-attemp-failed-of-generate-one-time-password-s-action-in-flows/163605/11 "2025-01-13T15:17:24Z")

</div>

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