You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case it helps, I have solved this issue by modifying OAuth2Swift.swift renewAccessToken() so that it passes self.accessTokenBasicAuthentification. So now that looks like:
return self.client.renewAccessToken(accessTokenUrl: self.accessTokenUrl, withRefreshToken: refreshToken, parameters: parameters ?? OAuthSwift.Parameters(), headers: headers, accessTokenBasicAuthentification: self.accessTokenBasicAuthentification, completionHandler: completion)
While I dislike modifying framework code, I have to do it for OauthSwift anyway in order to get it to work correctly on MacCatalyst (issue #634).
Description:
Is there a reason why we cannot use the
accessTokenBasicAuthentification
option when calling therenewAccessToken
function from the OAuth2Swift class?If we previously set the option when retrieving a token for the first time, it seems logical to reuse the option when refreshing the token.
OAuth Provider? (Twitter, Github, ..):
Custom
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
The text was updated successfully, but these errors were encountered: