Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84866

Cannot refresh access token: "qt.networkauth.oauth2: Cannot refresh access token. Refresh Access Token is already in progress"

    XMLWordPrintable

    Details

    • Platform/s:
      macOS

      Description

      User is using QOAuth2AuthorizationCodeFlow object to connect via oAuth2 to spotify and they are not able to refresh the token when it is expired.

      When they get grant they save the refreshtoken(in savedTokenRefresh variable)
      and then before each api call do:

      spotify.setRefreshToken(savedTokenRefresh); // spotify : QOAuth2AuthorizationCodeFlow spotify.refreshAccessToken();
      

      And in the application output it shows:
      [qt.networkauth.oauth2] Cannot refresh access token. Refresh Access Token is
      already in progress.

       

      Example project attached.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            manordheim Mårten Nordheim
            Reporter:
            tero.pelkonen Tero Pelkonen
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes