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
other: (Please fill in the version you are using.)
Xcode version:
11.4 (Swift 5.2)
11.x (Swift 5.1)
10.x (Swift 5.0)
[ x] other: (Swift 5.5, Xcode 13)
objective c
The function OAuthSwiftClient/requestWithAutomaticAccessTokenRenewal sends a request, and if the access token has timed out (typically 60 minutes or so) - obtains a new access token and then retries the originally passed request. This works exactly in this manner. However, for the Google YouTube Data API (v3) the access token is sent in the Header of each request. Hence, the retry of a request should use the newly acquired access token in the header. Currently, it re-uses the old access token.
I am uncertain if this is relevant to other Oauth2 API access, and did not check in the appropriate change. In OAuthSwiftClient/requestWithAutomaticAccessTokenRenewal (near line 302) I added the following line to create the updated header containing the refreshed access token for the retry. This then works as needed for the Google YouTube Data API (v3).
Would appreciate if this could be integrated without affecting other API's. Assistance welcome.
Description:
OAuth Provider? :
YouTube Data API (v3)
OAuth Version:
OS (Please fill the version) :
Installation method:
Library version:
Xcode version:
11.4 (Swift 5.2)
11.x (Swift 5.1)
10.x (Swift 5.0)
[ x] other: (Swift 5.5, Xcode 13)
objective c
The function OAuthSwiftClient/requestWithAutomaticAccessTokenRenewal sends a request, and if the access token has timed out (typically 60 minutes or so) - obtains a new access token and then retries the originally passed request. This works exactly in this manner. However, for the Google YouTube Data API (v3) the access token is sent in the Header of each request. Hence, the retry of a request should use the newly acquired access token in the header. Currently, it re-uses the old access token.
I am uncertain if this is relevant to other Oauth2 API access, and did not check in the appropriate change. In OAuthSwiftClient/requestWithAutomaticAccessTokenRenewal (near line 302) I added the following line to create the updated header containing the refreshed access token for the retry. This then works as needed for the Google YouTube Data API (v3).
Would appreciate if this could be integrated without affecting other API's. Assistance welcome.
The text was updated successfully, but these errors were encountered: