# Need refresh token

**URL:** <https://community.auth0.com/t/need-refresh-token/70095>\
**Category:** Get Help\
**Created:** [September 22, 2021, 2:59pm UTC](https://community.auth0.com/t/need-refresh-token/70095 "2021-09-22T14:59:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel.chagnas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emmanuel.chagnas/32/12752_2.png) [@emmanuel.chagnas](https://community.auth0.com/u/emmanuel.chagnas)\
**Post date:** [September 22, 2021, 2:59pm UTC](https://community.auth0.com/t/need-refresh-token/70095/1 "2021-09-22T14:59:25Z")

</div>

**Which SDK this is regarding:** react-native-auth0  
**SDK Version:** 2.10.0  
**Platform Version:** “react”: “17.0.2”, “react-native”: “0.65.1”,

Hi,  
New in the auth0 community, I tried to get Refresh and Access tokens from a React Native application.  
I followed the examples, I have the access token but that’s all.  
Searching in the forum, I found that I need to enable “Offline Access”, but it is not possible when we use “management API”…  
I don’t know if I used the “management API” or not, I’ve just follow the example, I use the SDK for React Native, i have the following code and I have just the access token :

const resp = await auth0.webAuth  
.authorize({scope: ‘openid profile email’})  
.then(credentials =\> {  
console.log('AUTHENTICATED! accessToken = ’ + credentials.accessToken);

How can I use another thing that the “management API”?  
Thanks by advance

---

<div class="post-metadata">

**Author:** ![emmanuel.chagnas](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/emmanuel.chagnas/32/12752_2.png) [@emmanuel.chagnas](https://community.auth0.com/u/emmanuel.chagnas)\
**Post date:** [September 23, 2021, 10:29am UTC](https://community.auth0.com/t/need-refresh-token/70095/2 "2021-09-23T10:29:40Z")

</div>

I found a solution, with a lot of luck.  
I’ve just try to add “offline\_access” in the scope parameter of the authorize function like this:

> .authorize({scope: ‘openid profile email offline\_access’})

I have now the refresh token in the response.

It should be great to be somewhere in the documentation, I think. 🙂

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 23, 2021, 11:19am UTC](https://community.auth0.com/t/need-refresh-token/70095/3 "2021-09-23T11:19:30Z")

</div>

Perfect! Glad you have figured it out! I’ll make sure to relay that feedback to our Docs team. Thanks!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 30, 2021, 9:30am UTC](https://community.auth0.com/t/need-refresh-token/70095/4 "2021-09-30T09:30:23Z")

</div>


