# Refresh\_token is not getting returned in the AuthorizationTokenRequest flutter

**URL:** <https://community.auth0.com/t/refresh-token-is-not-getting-returned-in-the-authorizationtokenrequest-flutter/87448>\
**Category:** Get Help\
**Tags:** refresh\_token, api, flutter, auth0\
**Created:** [July 22, 2022, 2:23am UTC](https://community.auth0.com/t/refresh-token-is-not-getting-returned-in-the-authorizationtokenrequest-flutter/87448 "2022-07-22T02:23:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apeshave](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/apeshave/32/38921_2.png) [@apeshave](https://community.auth0.com/u/apeshave)\
**Post date:** [July 22, 2022, 2:23am UTC](https://community.auth0.com/t/refresh-token-is-not-getting-returned-in-the-authorizationtokenrequest-flutter/87448/1 "2022-07-22T02:23:59Z")

</div>

Please include the following information in your post:

- Which SDK this is regarding: flutter\_appauth\_platform\_interface
- SDK Version: 4.1.0
- Platform Version: Flutter 3.0.0 • channel stable
- Code Snippets/Error Messages/Supporting Details/Screenshots:

There is no error as such but I have a staging environment working fine but the production environment asking to log in all the time because refresh\_token is not part of the AuthorizationTokenRequest response.

Where should I start looking because the values/configuration looks identical?

**Is this a feature request or bug report?** If so, please create an issue directly in the corresponding GitHub repo. The Community SDK category is for general discussion and support.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 25, 2022, 10:29am UTC](https://community.auth0.com/t/refresh-token-is-not-getting-returned-in-the-authorizationtokenrequest-flutter/87448/2 "2022-07-25T10:29:04Z")

</div>

Some things to review:

- ensure that both environments are making equivalent authentication requests.
- verify that the corresponding API is configured to allow refresh tokens to be issued (allow offline access).
- check if there are any rules that may be modifying the scope of the issued tokens and in this way removing the `offline_access` scope that would be required for a refresh token to be issued.

---

<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:** [November 19, 2024, 12:20am UTC](https://community.auth0.com/t/refresh-token-is-not-getting-returned-in-the-authorizationtokenrequest-flutter/87448/3 "2024-11-19T00:20:22Z")

</div>

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