# What is the lifetime of the SMS verification code?

**URL:** <https://devforum.okta.com/t/what-is-the-lifetime-of-the-sms-verification-code/9424>\
**Category:** Questions\
**Created:** [May 18, 2020, 11:57pm UTC](https://devforum.okta.com/t/what-is-the-lifetime-of-the-sms-verification-code/9424 "2020-05-18T23:57:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndrWeis](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@AndrWeis](https://devforum.okta.com/u/AndrWeis)\
**Post date:** [May 18, 2020, 11:57pm UTC](https://devforum.okta.com/t/what-is-the-lifetime-of-the-sms-verification-code/9424/1 "2020-05-18T23:57:24Z")

</div>

What is the lifetime of the verification code that is SMS’d to the user for MFA? Can that lifetime be customised?

---

<div class="post-metadata">

**Author:** ![rajnadimpalli](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rajnadimpalli](https://devforum.okta.com/u/rajnadimpalli)\
**Post date:** [May 25, 2020, 4:59am UTC](https://devforum.okta.com/t/what-is-the-lifetime-of-the-sms-verification-code/9424/2 "2020-05-25T04:59:49Z")

</div>

Hi @AndrWeis,

The SMS code expires by default in 5 minutes once the code has been sent to the device. Unfortunately, the timeout is not configurable at this time.

Thank you.

---

<div class="post-metadata">

**Author:** ![PhilDeVries](https://avatars.discourse-cdn.com/v4/letter/p/5e9695/32.png) [@PhilDeVries](https://devforum.okta.com/u/PhilDeVries)\
**Post date:** [September 13, 2022, 6:21pm UTC](https://devforum.okta.com/t/what-is-the-lifetime-of-the-sms-verification-code/9424/3 "2022-09-13T18:21:55Z")

</div>

Is this the same for Email verification code?  
We have set the “Email OTP token lifetime (minutes)” = 10 in Security/Multifactor/FactorTypes/EmailAuthentication/EmailAuthenticationSettings, but when we send a six digit verification code to user for MFA it is expiring after 5 minutes.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [February 12, 2024, 10:02pm UTC](https://devforum.okta.com/t/what-is-the-lifetime-of-the-sms-verification-code/9424/4 "2024-02-12T22:02:23Z")

</div>

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