# "Unknown or invalid refresh token" error encountered for NextJS projects

**URL:** <https://community.auth0.com/t/unknown-or-invalid-refresh-token-error-encountered-for-nextjs-projects/109571>\
**Category:** Get Help\
**Tags:** user-profile, user-management\
**Created:** [June 20, 2023, 5:57am UTC](https://community.auth0.com/t/unknown-or-invalid-refresh-token-error-encountered-for-nextjs-projects/109571 "2023-06-20T05:57:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SaqibHussain](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saqibhussain/32/42924_2.png) [@SaqibHussain](https://community.auth0.com/u/SaqibHussain)\
**Post date:** [June 29, 2023, 11:55pm UTC](https://community.auth0.com/t/unknown-or-invalid-refresh-token-error-encountered-for-nextjs-projects/109571/2 "2023-06-29T23:55:15Z")

</div>

Hi @jarebb

Thanks for getting in touch with us at Auth0 Community.

It’s difficult to know what could be causing this without more information but I have some ideas below:

If you are not using [refresh token rotation](https://auth0.com/docs/secure/tokens/refresh-tokens/refresh-token-rotation) and manually revoking refresh tokens, it could be that you have this tenant setting switched on which would would invalidate all tokens associated with the same grant, please see [https://auth0.com/docs/secure/tokens/refresh-tokens/revoke-refresh-tokens#refresh-tokens-and-grants](https://auth0.com/docs/secure/tokens/refresh-tokens/revoke-refresh-tokens#refresh-tokens-and-grants), if so you could try switching the tenant setting off.

I’m linking some similar posts below which may also help you on this issue:

[https://community.auth0.com/t/error-403-invalid-grant-unknown-or-invalid-refresh-token-spa-reactjs/89027](https://community.auth0.com/t/error-403-invalid-grant-unknown-or-invalid-refresh-token-spa-reactjs/89027)

[https://community.auth0.com/t/error-refreshing-access-token-invalid-grant-unknown-or-invalid-refresh-token/74127](https://community.auth0.com/t/error-refreshing-access-token-invalid-grant-unknown-or-invalid-refresh-token/74127)

Warm regards.

---

_[View the full topic](https://community.auth0.com/t/unknown-or-invalid-refresh-token-error-encountered-for-nextjs-projects/109571)._
