Refresh_token is not getting returned in the AuthorizationTokenRequest flutter

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.

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.
1 Like

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