# Implementation rotating refresh tokens

**URL:** <https://community.auth0.com/t/implementation-rotating-refresh-tokens/49421>\
**Category:** Get Help\
**Tags:** jwt, auth0\
**Created:** [September 8, 2020, 5:25pm UTC](https://community.auth0.com/t/implementation-rotating-refresh-tokens/49421 "2020-09-08T17:25:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![y.savchenko](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/y.savchenko/32/23252_2.png) [@y.savchenko](https://community.auth0.com/u/y.savchenko)\
**Post date:** [September 8, 2020, 5:25pm UTC](https://community.auth0.com/t/implementation-rotating-refresh-tokens/49421/1 "2020-09-08T17:25:12Z")

</div>

We implement Auth0 in our project and want to use approach with rotating refresh tokens instead of sessions in cookies. We configured Auth0Provider for using refresh token and storage token in local storage.  
`<Auth0Provider domain={domain} clientId={clientId} redirectUri={window.location.origin} onRedirectCallback={onRedirectCallback} audience={audience} useRefreshTokens={true} cacheLocation="localstorage" >`  
But when browser has “Block third-party cookies” settings we have error: Login required, when trying to get token by getAccessTokenSilently() method. As I understand, it happens because browser blocked cookies. Can I implement refresh token approach without using cookies?

---

<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:** [September 9, 2020, 9:21pm UTC](https://community.auth0.com/t/implementation-rotating-refresh-tokens/49421/3 "2020-09-09T21:21:56Z")

</div>

Hi @y.savchenko,

If you are using the auth0-react sdk, you can utilize the `useRefreshTokens` option to configure refresh token rotation.

> <https://github.com/auth0/auth0-react/blob/bb8ec720d85fad347e9105a7dc36e3de9cd29a85/src/auth0-provider.tsx#L71>

Hope this helps!  
Dan

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 24, 2020, 9:21pm UTC](https://community.auth0.com/t/implementation-rotating-refresh-tokens/49421/4 "2020-09-24T21:21:57Z")

</div>

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