# Refresh\_token for OAuth2.0 is coming Null

**URL:** <https://community.developer.atlassian.com/t/refresh-token-for-oauth2-0-is-coming-null/88266>\
**Category:** Jira Development\
**Tags:** oauth2\
**Created:** [January 29, 2025, 6:44am UTC](https://community.developer.atlassian.com/t/refresh-token-for-oauth2-0-is-coming-null/88266 "2025-01-29T06:44:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AninditaMukherjee](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@AninditaMukherjee](https://community.developer.atlassian.com/u/AninditaMukherjee)\
**Post date:** [January 29, 2025, 6:44am UTC](https://community.developer.atlassian.com/t/refresh-token-for-oauth2-0-is-coming-null/88266/1 "2025-01-29T06:44:57Z")

</div>

my url is :

[Log in with Atlassian account](https://auth.atlassian.com/authorize?response_type=code&client_id=)\<client\_id\>&redirect\_uri=https%3A%2F%2Flocalhost%3A7254%2Fthankyou.html&scope=write%3Ajira-work+read%3Ajira-work+offline\_access&state=${encodedPayload}&prompt=consent`

I am able to get the accesss key but my refresh token is null.How to solve this.  
Also can I get a permanent token after generating the access\_token and refresh\_token which I can use after the access\_token expires?
