# Refresh Token Rotation with @auth0/nextjs-auth0 SDK

**URL:** <https://community.auth0.com/t/refresh-token-rotation-with-auth0-nextjs-auth0-sdk/84403>\
**Category:** Get Help\
**Tags:** refresh-token-rotate, refresh-tokens, refresh-token\
**Created:** [June 1, 2022, 2:49pm UTC](https://community.auth0.com/t/refresh-token-rotation-with-auth0-nextjs-auth0-sdk/84403 "2022-06-01T14:49:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sofiyev.external](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sofiyev.external/32/33661_2.png) [@sofiyev.external](https://community.auth0.com/u/sofiyev.external)\
**Post date:** [June 1, 2022, 2:49pm UTC](https://community.auth0.com/t/refresh-token-rotation-with-auth0-nextjs-auth0-sdk/84403/1 "2022-06-01T14:49:42Z")

</div>

Hello,

I’m using @auth0/nextjs-auth0 SDK in my Next.JS application and trying to enable refresh token rotation.

1. I enabled **Refresh Token Rotation** on the **Settings** page. (Reuse Interval is 0 second)
2. **offline\_access** added to my **AUTH0\_SCOPE** environment variable

But when I revoke the refresh token from the user, I assume my current user will be logout. But it’s not happening like that and users can continue using the application without error.

Can someone help me figure out what you’re doing wrong?

- Which SDK this is regarding: **@auth0/nextjs-auth0**
- SDK Version: **1.9.0**

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 10, 2022, 4:03pm UTC](https://community.auth0.com/t/refresh-token-rotation-with-auth0-nextjs-auth0-sdk/84403/4 "2022-06-10T16:03:26Z")

</div>

Hi @sofiyev.external,

Welcome to the Auth0 Community!

I understand you are having trouble terminating the user session.

I suspect the user still has a valid access token, as they cannot be revoked after being issued.

You should be able to inspect the request to see exactly what is being sent with the request by using the Chrome DevTools “Network” tab. I would be happy to take a look if you could DM me a [HAR](https://auth0.com/docs/troubleshoot/guides/generate-har-files) file.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 28, 2022, 10:36pm UTC](https://community.auth0.com/t/refresh-token-rotation-with-auth0-nextjs-auth0-sdk/84403/5 "2022-06-28T22:36:24Z")

</div>


