# The refresh\_token was generated for a user who doesn't exist anymore

**URL:** <https://community.auth0.com/t/the-refresh-token-was-generated-for-a-user-who-doesnt-exist-anymore/90344>\
**Category:** Get Help\
**Tags:** refresh-tokens\
**Created:** [September 9, 2022, 7:25pm UTC](https://community.auth0.com/t/the-refresh-token-was-generated-for-a-user-who-doesnt-exist-anymore/90344 "2022-09-09T19:25:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergio.tomas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sergio.tomas/32/33362_2.png) [@sergio.tomas](https://community.auth0.com/u/sergio.tomas)\
**Post date:** [September 9, 2022, 7:25pm UTC](https://community.auth0.com/t/the-refresh-token-was-generated-for-a-user-who-doesnt-exist-anymore/90344/1 "2022-09-09T19:25:14Z")

</div>

I’m receiving an error message when I tried to get a refresh token.

Message: The refresh\_token was generated for a user who doesn’t exist anymore.

But the user is not deleted, not linked with other account and the connection with database is okay, can you guys help me about this issue?

Edit: My database have custom database enabled.

---

<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:** [September 15, 2022, 12:11am UTC](https://community.auth0.com/t/the-refresh-token-was-generated-for-a-user-who-doesnt-exist-anymore/90344/4 "2022-09-15T00:11:12Z")

</div>

Hi @sergio.tomas ,

Welcome to the Auth0 Community!

I noticed that you opened a support ticket for the same issue. I will add the solution to this topic once it’s resolved. Thanks!

---

<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:** [February 9, 2023, 1:40pm UTC](https://community.auth0.com/t/the-refresh-token-was-generated-for-a-user-who-doesnt-exist-anymore/90344/5 "2023-02-09T13:40:07Z")

</div>

Removing the user\_id property from app\_metadata and using a role script to obtain this property without get this property from app\_metadada

---

<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:** [February 22, 2023, 11:43am UTC](https://community.auth0.com/t/the-refresh-token-was-generated-for-a-user-who-doesnt-exist-anymore/90344/6 "2023-02-22T11:43:49Z")

</div>


