Skip to content

Commit

Permalink
fix(auth, android): Pass firebaseAuth into OAuthProvider.newBuilder(.…
Browse files Browse the repository at this point in the history
…..) (#7677)
  • Loading branch information
lanpai authored Apr 11, 2024
1 parent 8ef9249 commit 21a9454
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,9 @@ private void signInWithProvider(String appName, ReadableMap provider, final Prom
return;
}

OAuthProvider.Builder builder = OAuthProvider.newBuilder(provider.getString("providerId"));
OAuthProvider.Builder builder = OAuthProvider.newBuilder(
provider.getString("providerId"),
firebaseAuth);
// Add scopes if present
if (provider.hasKey("scopes")) {
ReadableArray scopes = provider.getArray("scopes");
Expand Down Expand Up @@ -1648,7 +1650,9 @@ private void linkWithProvider(String appName, ReadableMap provider, final Promis
return;
}

OAuthProvider.Builder builder = OAuthProvider.newBuilder(provider.getString("providerId"));
OAuthProvider.Builder builder = OAuthProvider.newBuilder(
provider.getString("providerId"),
firebaseAuth);
// Add scopes if present
if (provider.hasKey("scopes")) {
ReadableArray scopes = provider.getArray("scopes");
Expand Down Expand Up @@ -1791,7 +1795,9 @@ private void reauthenticateWithProvider(
return;
}

OAuthProvider.Builder builder = OAuthProvider.newBuilder(provider.getString("providerId"));
OAuthProvider.Builder builder = OAuthProvider.newBuilder(
provider.getString("providerId"),
firebaseAuth);
// Add scopes if present
if (provider.hasKey("scopes")) {
ReadableArray scopes = provider.getArray("scopes");
Expand Down

0 comments on commit 21a9454

Please sign in to comment.