# How to get the refresh token with getAccessTokenSilently

**URL:** <https://community.auth0.com/t/how-to-get-the-refresh-token-with-getaccesstokensilently/120034>\
**Category:** Get Help\
**Tags:** reusable-refresh-tokens, sessions\
**Created:** [November 2, 2023, 2:26am UTC](https://community.auth0.com/t/how-to-get-the-refresh-token-with-getaccesstokensilently/120034 "2023-11-02T02:26:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![giaohoangkha](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/giaohoangkha/32/52159_2.png) [@giaohoangkha](https://community.auth0.com/u/giaohoangkha)\
**Post date:** [November 2, 2023, 2:26am UTC](https://community.auth0.com/t/how-to-get-the-refresh-token-with-getaccesstokensilently/120034/1 "2023-11-02T02:26:34Z")

</div>

Hi, we have a use case that need to get the refresh token and emit this refresh token to our mobile application via a mobile web view.  
Next time we will this refresh token to exchange for the access token so that users do not have to login again via universal login in the webview.  
But it seems await getAccessTokenSilently({detailedResponse: true}) is omitting the refresh\_token value by this

```auto
export declare type GetTokenSilentlyVerboseResponse = Omit<TokenEndpointResponse, 'refresh_token'>;

```

What should we do in order to get a refresh token value?

---

<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:** [November 17, 2023, 2:13am UTC](https://community.auth0.com/t/how-to-get-the-refresh-token-with-getaccesstokensilently/120034/3 "2023-11-17T02:13:05Z")

</div>

Hey there @giaohoangkha welcome to the community!

You’ll need to include the `offline_access` scope in the request and your API in Auth0 must be configured to allow offline access in order for a [refresh token](https://auth0.com/docs/secure/tokens/refresh-tokens) to be returned - It depends on which mobile SDK you are using how you go about doing this.

---

<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:** [December 1, 2023, 2:13am UTC](https://community.auth0.com/t/how-to-get-the-refresh-token-with-getaccesstokensilently/120034/4 "2023-12-01T02:13:37Z")

</div>

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