# Getting the Refresh Token From React Auth0 SDK

**URL:** <https://community.auth0.com/t/getting-the-refresh-token-from-react-auth0-sdk/83059>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [May 6, 2022, 8:57pm UTC](https://community.auth0.com/t/getting-the-refresh-token-from-react-auth0-sdk/83059 "2022-05-06T20:57:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sam.toh](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sam.toh/32/33466_2.png) [@sam.toh](https://community.auth0.com/u/sam.toh)\
**Post date:** [May 6, 2022, 8:57pm UTC](https://community.auth0.com/t/getting-the-refresh-token-from-react-auth0-sdk/83059/1 "2022-05-06T20:57:13Z")

</div>

How can we get the Refresh Token after calling getAccessTokenSilently? We want to be able to retrieve the refresh token and pass it to somewhere else.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 10, 2022, 12:00am UTC](https://community.auth0.com/t/getting-the-refresh-token-from-react-auth0-sdk/83059/4 "2022-05-10T00:00:49Z")

</div>

Hi there @sam.toh welcome to the community!

> [@sam.toh](#):
>
> We want to be able to retrieve the refresh token and pass it to somewhere else.

Out of curiosity, what’s the intended use case here? Are you already using refresh tokens by passing `useRefreshTokens={true}` as a prop to `Auth0Provider`?

You might also be interested in the following regarding storing tokens:

> **[@auth0/auth0-react](https://auth0.github.io/auth0-react/modules.html#CacheLocation)**
>
> Documentation for @auth0/auth0-react

> **[Token Storage](https://auth0.com/docs/secure/security-guidance/data-security/token-storage#browser-local-storage-scenarios)**
>
> Learn how and where to store tokens used in token-based authentication.

> **[What Are Refresh Tokens and How to Use Them Securely](https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/#You-Can-Store-Refresh-Token-In-Local-Storage)**
>
> Learn about refresh tokens and how they help developers balance security and usability in their applications.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 25, 2022, 11:43pm UTC](https://community.auth0.com/t/getting-the-refresh-token-from-react-auth0-sdk/83059/5 "2022-05-25T23:43:23Z")

</div>


