# Getting the refresh token value with auth0-react SDK

**URL:** <https://community.auth0.com/t/getting-the-refresh-token-value-with-auth0-react-sdk/84982>\
**Category:** Get Help\
**Created:** [June 11, 2022, 12:56pm UTC](https://community.auth0.com/t/getting-the-refresh-token-value-with-auth0-react-sdk/84982 "2022-06-11T12:56:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boaz](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/boaz/32/35411_2.png) [@boaz](https://community.auth0.com/u/boaz)\
**Post date:** [June 11, 2022, 12:56pm UTC](https://community.auth0.com/t/getting-the-refresh-token-value-with-auth0-react-sdk/84982/1 "2022-06-11T12:56:42Z")

</div>

Hi,

I’m using auth0-react SDK and unable to get the value of the refresh token. When monitoring the network request, I can see that the refresh token is included in the /oauth/token response, but when calling getAccessTokenSilently with the detailedResponse:true option, I’m getting everything **BUT** the refresh token…

Any idea why?

- Which SDK this is regarding: **auth0-react**
- SDK Version: **1.10.1**

---

<div class="post-metadata">

**Author:** ![b.abakzahedi7141](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/b.abakzahedi7141/32/34072_2.png) [@b.abakzahedi7141](https://community.auth0.com/u/b.abakzahedi7141)\
**Post date:** [June 13, 2022, 7:54am UTC](https://community.auth0.com/t/getting-the-refresh-token-value-with-auth0-react-sdk/84982/2 "2022-06-13T07:54:17Z")

</div>

I appreciate what you did[.](https://www.prepaidgiftbalance.biz/)

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [January 30, 2025, 8:23pm UTC](https://community.auth0.com/t/getting-the-refresh-token-value-with-auth0-react-sdk/84982/4 "2025-01-30T20:23:12Z")

</div>

Hi @boaz

Thank you for posting your inquiry.

In order to get the value of the refresh token in your response,the Refresh Token grant type from the Advanced Settings of your Application has to be enabled, then make sure you add the `scope:offline_access` when you make the call to the `/authorize` endpoint as described in our [documentation](https://auth0.com/docs/secure/tokens/refresh-tokens/get-refresh-tokens?_gl=1*z6mb1d*_gcl_au*MTEzMjcyMTIxNS4xNzM0NTI1MDYz*_ga*MTk5NDI5MjUzNy4xNzM0NTI1MDYz*_ga_QKMSDV5369*MTczODI1ODY0Mi4xMTIuMS4xNzM4MjY3NTA1LjYwLjAuMA..).

I hope this helped,  
Remus

---

<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:** [February 13, 2025, 8:23pm UTC](https://community.auth0.com/t/getting-the-refresh-token-value-with-auth0-react-sdk/84982/5 "2025-02-13T20:23:59Z")

</div>

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