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

    • 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

        Activity

          People

            cnn Qt Core & Network
            tero.pelkonen Tero Pelkonen
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: