# SMS MFA expiry date and customization

**URL:** <https://community.auth0.com/t/sms-mfa-expiry-date-and-customization/50602>\
**Category:** Get Help\
**Tags:** expiration, mfa-sms, auth0, mfa, login\
**Created:** [September 28, 2020, 9:16pm UTC](https://community.auth0.com/t/sms-mfa-expiry-date-and-customization/50602 "2020-09-28T21:16:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric.hu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eric.hu/32/12777_2.png) [@eric.hu](https://community.auth0.com/u/eric.hu)\
**Post date:** [September 28, 2020, 9:16pm UTC](https://community.auth0.com/t/sms-mfa-expiry-date-and-customization/50602/1 "2020-09-28T21:16:53Z")

</div>

Hello,

I’m currently configuring MFA SMS with Twilio as SMS provider and I was looking for two things:

- a way to customize code expiry date
- what is the default time limit of a code ?

Thank you

---

<div class="post-metadata">

**Author:** ![colin.coutts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/colin.coutts/32/17217_2.png) [@colin.coutts](https://community.auth0.com/u/colin.coutts)\
**Post date:** [September 28, 2020, 9:45pm UTC](https://community.auth0.com/t/sms-mfa-expiry-date-and-customization/50602/2 "2020-09-28T21:45:42Z")

</div>

Hi @eric.hu and thanks for reaching out!

You should be able to customize the expiry date when you configure your Passwordless SMS by adjusting the `OTP Expiry` value. By default I believe the expiry is set to `180 seconds`. Here’s some documentation about configuring Passwordless SMS that should help with that.

> **[Passwordless Authentication with SMS](https://auth0.com/docs/authenticate/passwordless/authentication-methods/sms-otp)**
>
> Describes how to use Passwordless connections with the SMS authentication method.

Let me know if this helps answer your question!

Best,  
Colin

---

<div class="post-metadata">

**Author:** ![eric.hu](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/eric.hu/32/12777_2.png) [@eric.hu](https://community.auth0.com/u/eric.hu)\
**Post date:** [September 28, 2020, 9:47pm UTC](https://community.auth0.com/t/sms-mfa-expiry-date-and-customization/50602/4 "2020-09-28T21:47:50Z")

</div>

Hello Colin,

Thank you for taking time to answer me !  
Does the Passwordless SMS configuration also set up for the MFA SMS ?

Regards,  
Eric

---

<div class="post-metadata">

**Author:** ![colin.coutts](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/colin.coutts/32/17217_2.png) [@colin.coutts](https://community.auth0.com/u/colin.coutts)\
**Post date:** [September 28, 2020, 9:58pm UTC](https://community.auth0.com/t/sms-mfa-expiry-date-and-customization/50602/5 "2020-09-28T21:58:35Z")

</div>

Hi @eric.hu

My apologies I was thinking in terms of Passwordless SMS and not MFA with SMS which does follow different behavior. In the context of MFA it isn’t the code/OTP that expires, but rather it is the `transaction` which can expire. However to your point about customizing this transaction expiry, unfortunately this is not customizable at this time as it’s a global configuration. The default expiry for MFA transactions is 5 minutes, which can be found in our docs on troubleshooting MFA

> **[Troubleshoot Multi-Factor Authentication Issues](https://auth0.com/docs/troubleshoot/authentication-issues/troubleshoot-mfa-issues)**
>
> Describes basic troubleshooting of MFA issues for your users.

Apologies again for the confusion on my end, let me know if that answers your question 🙂

Best,  
Colin

---

<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:** [October 13, 2020, 9:58pm UTC](https://community.auth0.com/t/sms-mfa-expiry-date-and-customization/50602/6 "2020-10-13T21:58:40Z")

</div>

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