# Auth0 generated messages

**URL:** <https://community.auth0.com/t/auth0-generated-messages/88138>\
**Category:** Get Help\
**Created:** [August 3, 2022, 7:26pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138 "2022-08-03T19:26:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![yslee8742](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yslee8742/32/39125_2.png) [@yslee8742](https://community.auth0.com/u/yslee8742)\
**Post date:** [August 3, 2022, 7:26pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/1 "2022-08-03T19:26:36Z")

</div>

Is there a way to edit auth0 generated message related to `id_token`? That is, the error message currently says the following, which needs to be customized.

> The verification code has expired. Please try to login again.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 3, 2022, 11:48pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/2 "2022-08-03T23:48:54Z")

</div>

Hello @yslee8742 welcome to the community!

> [@yslee8742](#):
>
> Is there a way to edit auth0 generated message related to `id_token`?

Where exactly are you seeing this error message? As far as I can tell this is related to a passwordless flow? In that case I assume you are using [Classic Universal Login](https://auth0.com/docs/authenticate/login/auth0-universal-login/classic-experience)?

Let us know!

---

<div class="post-metadata">

**Author:** ![yslee8742](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yslee8742/32/39125_2.png) [@yslee8742](https://community.auth0.com/u/yslee8742)\
**Post date:** [August 4, 2022, 12:54pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/5 "2022-08-04T12:54:03Z")

</div>

Thanks @ty.frith, this is were I’m seeing the message right after the email login and code has been sent. But I’ve set the `id_token` to expire in 3 mins and this is when you go beyond 3 mins. The goal is to change the wording on the highlighted text: _ **The verification code has expired. Please try to login again.** _

And yes we’re using “Classical Universal Login”.

 ![Screen Shot 2022-08-04 at 8.49.55 AM](https://global.discourse-cdn.com/auth0/original/3X/9/7/97a8e703bc70e2dba8d224dc112d2e669b044394.jpeg)

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 5, 2022, 1:17am UTC](https://community.auth0.com/t/auth0-generated-messages/88138/6 "2022-08-05T01:17:46Z")

</div>

Thanks for confirming!

You _should_ be able to change this error text by providing a `languageDictionary` option in the Lock widget code - Please see the following article and topic:

> **[Customize Lock Error Messages](https://auth0.com/docs/customize/customize-lock-error-messages)**
>
> Customizing error messages with Lock

> [@Customize error for wrong mobile number and otp in lock passwordless universal Login](https://community.auth0.com/t/customize-error-for-wrong-mobile-number-and-otp-in-lock-passwordless-universal-login/57864/3):
>
> Hi @ssharma, Welcome to the Community! You can customize the passwordless error messages like this: var languageDictionary = { error: { passwordless: { // User enters incorrect code invalid\_user\_password: 'That is not the code', // User does not enter code (i.e. leaves field blank) 'bad.verification\_code': 'No code provided', // invalid phone number 'bad.phone\_number': 'Please enter a valid phone numbe…

Hope this helps!

---

<div class="post-metadata">

**Author:** ![yslee8742](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yslee8742/32/39125_2.png) [@yslee8742](https://community.auth0.com/u/yslee8742)\
**Post date:** [August 5, 2022, 1:37pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/7 "2022-08-05T13:37:35Z")

</div>

Thanks @ty.frith, but I feel like the above `languageDictionary` controls the Auth0 login popup. What we need is to change text after the code has been generated and one that shows up on ‘our’ application.

---

<div class="post-metadata">

**Author:** ![yslee8742](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/yslee8742/32/39125_2.png) [@yslee8742](https://community.auth0.com/u/yslee8742)\
**Post date:** [August 10, 2022, 6:04pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/8 "2022-08-10T18:04:16Z")

</div>

@ty.frith Can I get some insights on the last question? Thanks.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 22, 2022, 10:25pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/10 "2022-08-22T22:25:15Z")

</div>

Hey @yslee8742 apologize for the delayed response here! Thanks for clarifying, I was mistaken previously - You’re correct, this is outside of the Lock customization which `languageDictionary` has access to. There’s an open ticket internally to confirm whether or not the desired behavior is possible. I imagine we’ll have an answer soon and I will definitely update this thread once we do 🙂

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 24, 2022, 9:03pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/11 "2022-08-24T21:03:22Z")

</div>

Following up here for future reference - Unfortunately the the response from the API in this context is not configurable in any SDK.

@yslee8742 If you’d like to, I definitely encourage creating a [feedback request](https://community.auth0.com/c/feedback/95) as we monitor those closely!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [September 8, 2022, 9:03pm UTC](https://community.auth0.com/t/auth0-generated-messages/88138/12 "2022-09-08T21:03:30Z")

</div>

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