# Getting access token from API /oauth/token returns null refresh token

**URL:** <https://community.auth0.com/t/getting-access-token-from-api-oauth-token-returns-null-refresh-token/88102>\
**Category:** Get Help\
**Created:** [August 3, 2022, 10:37am UTC](https://community.auth0.com/t/getting-access-token-from-api-oauth-token-returns-null-refresh-token/88102 "2022-08-03T10:37:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dev40](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dev40/32/33281_2.png) [@dev40](https://community.auth0.com/u/dev40)\
**Post date:** [August 3, 2022, 10:37am UTC](https://community.auth0.com/t/getting-access-token-from-api-oauth-token-returns-null-refresh-token/88102/1 "2022-08-03T10:37:47Z")

</div>

When I get access token from API /oauth/token it returns access token but null refresh token. Using postman I can get refresh token but in our web app refresh token is null. Why is that so?

 ![1](https://global.discourse-cdn.com/auth0/original/3X/3/f/3f7eb17366f42bd2f635125a638a68c50956c1a5.png)

---

<div class="post-metadata">

**Author:** ![sgo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sgo/32/13789_2.png) [@sgo](https://community.auth0.com/u/sgo)\
**Post date:** [August 3, 2022, 12:01pm UTC](https://community.auth0.com/t/getting-access-token-from-api-oauth-token-returns-null-refresh-token/88102/2 "2022-08-03T12:01:40Z")

</div>

Hi @dev40!

Are you requesting the `offline_access` scope from the application, and has the API you are specifying as the audience been enabled for offline access in its settings?

> **[Get Refresh Tokens](https://auth0.com/docs/secure/tokens/refresh-tokens/get-refresh-tokens)**
>
> Describes how to get a Refresh Token when you initiate a request using the Authorize endpoint.

---

<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:** [August 19, 2024, 6:19pm UTC](https://community.auth0.com/t/getting-access-token-from-api-oauth-token-returns-null-refresh-token/88102/3 "2024-08-19T18:19:52Z")

</div>

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