Skip to content

Commit 7d1edd2

Browse files
Use oauthAccessToken instead of IDToken when returnIDPCredential is yes
Another fix for #2522
1 parent ee8d90a commit 7d1edd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Firebase/Auth/Source/FIRUser.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ - (void)linkAndRetrieveDataWithCredential:(FIRAuthCredential *)credential
11151115
// Update the new token and refresh user info again.
11161116
self->_tokenService = [[FIRSecureTokenService alloc]
11171117
initWithRequestConfiguration:requestConfiguration
1118-
accessToken:response.IDToken
1118+
accessToken:response.oauthAccessToken
11191119
accessTokenExpirationDate:response.approximateExpirationDate
11201120
refreshToken:response.refreshToken];
11211121
[self internalGetTokenWithCallback:^(NSString *_Nullable accessToken,

0 commit comments

Comments
 (0)