Skip to content

Commit

Permalink
fix(auth): signInWithRedirect uses provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetherall committed May 3, 2023
1 parent 3bdd4f5 commit 3a4935d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/auth/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,8 @@ class FirebaseAuthModule extends FirebaseModule {
.then(userCredential => this._setUserCredential(userCredential));
}

signInWithRedirect() {
return this.native
.signInWithProvider(provider.providerId, provider.customParameters?.login_hint)
.then(userCredential => this._setUserCredential(userCredential));
signInWithRedirect(provider) {
return this.signInWithPopup(provider);
}

// firebase issue - https://github.com/invertase/react-native-firebase/pull/655#issuecomment-349904680
Expand Down

0 comments on commit 3a4935d

Please sign in to comment.