Skip to content

Commit

Permalink
fix(auth, android): allow nullable accessToken when creating `OAuth…
Browse files Browse the repository at this point in the history
…Provider` (#12795)
  • Loading branch information
russellwheatley committed May 21, 2024
1 parent eca2df6 commit 490319d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,9 @@ static AuthCredential getCredential(Map<String, Object> credentialMap) {
String providerId =
(String) Objects.requireNonNull(credentialMap.get(Constants.PROVIDER_ID));
OAuthProvider.CredentialBuilder builder = OAuthProvider.newCredentialBuilder(providerId);
builder.setAccessToken(Objects.requireNonNull(accessToken));
if (accessToken != null) {
builder.setAccessToken(accessToken);
}
if (rawNonce == null) {
builder.setIdToken(Objects.requireNonNull(idToken));
} else {
Expand Down

0 comments on commit 490319d

Please sign in to comment.