# Using Refresh tokens with Applications, not APIs

**URL:** <https://community.auth0.com/t/using-refresh-tokens-with-applications-not-apis/86188>\
**Category:** Get Help\
**Created:** [June 29, 2022, 5:46pm UTC](https://community.auth0.com/t/using-refresh-tokens-with-applications-not-apis/86188 "2022-06-29T17:46:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.kaufman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matt.kaufman/32/38482_2.png) [@matt.kaufman](https://community.auth0.com/u/matt.kaufman)\
**Post date:** [June 29, 2022, 5:46pm UTC](https://community.auth0.com/t/using-refresh-tokens-with-applications-not-apis/86188/1 "2022-06-29T17:46:04Z")

</div>

We’re looking to receive a refresh token from the passwordGrant API ()[Authentication API Explorer](https://auth0.com/docs/api/authentication#resource-owner-password)) via nodeJs ([AuthenticationClient - Documentation](https://auth0.github.io/node-auth0/AuthenticationClient.html#passwordGrant)) but cannot find anywhere to turn on offline\_access for our application.

We don’t use auth0 APIs, we just have an application which we authenticate our microservices through. We would like to use refresh tokens to enable our native app users to remain logged in for longer. Any help is appreciated, thank you!

 ![Screen Shot 2022-06-29 at 12.32.19 PM](https://global.discourse-cdn.com/auth0/original/3X/7/a/7a4f4370742e6c1630f69fda9436bee75e945af4.png)  
This screenshot indicates I should be able to Allow Offline Access in the Application settings, not just API settings. Source: [Call Your API Using Resource Owner Password Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow/call-your-api-using-resource-owner-password-flow)

---

<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:** [June 29, 2022, 11:21pm UTC](https://community.auth0.com/t/using-refresh-tokens-with-applications-not-apis/86188/3 "2022-06-29T23:21:57Z")

</div>

Hey there @matt.kaufman welcome to the community!

> [@matt.kaufman](#):
>
> This screenshot indicates I should be able to Allow Offline Access in the Application settings, not just API settings.

I _think_ this documentation may be mistaken as I’m not aware of any such setting at the application level - Using the password grant, you should just be able to include the `offline_access` scope in the authorization request in order to retrieve a refresh token.

---

<div class="post-metadata">

**Author:** ![matt.kaufman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/matt.kaufman/32/38482_2.png) [@matt.kaufman](https://community.auth0.com/u/matt.kaufman)\
**Post date:** [June 30, 2022, 1:12pm UTC](https://community.auth0.com/t/using-refresh-tokens-with-applications-not-apis/86188/4 "2022-06-30T13:12:24Z")

</div>

Thanks! We determined that we were able to get a refresh token via https but not through the node.js library [GitHub - auth0/node-auth0: Node.js client library for the Auth0 platform.](https://github.com/auth0/node-auth0) even though we’re adding the correct `offline_access` scope, its not coming through

---

<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:** [June 30, 2022, 10:55pm UTC](https://community.auth0.com/t/using-refresh-tokens-with-applications-not-apis/86188/5 "2022-06-30T22:55:09Z")

</div>

Appreciate for the update! I’m going to mark this as solved considering you’ve opened up a new topic specific to Node 🙂 Thanks for opening a new topic BTW!

Cheers!

---

<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:** [July 15, 2022, 10:55pm UTC](https://community.auth0.com/t/using-refresh-tokens-with-applications-not-apis/86188/6 "2022-07-15T22:55:47Z")

</div>

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