Skip to content

Commit

Permalink
fix(ui_auth): fix OAuth providers on RegisterScreen (#10026)
Browse files Browse the repository at this point in the history
* fix(ui_auth): fix OAuth providers on RegisterScreen

* Update packages/firebase_ui_auth/lib/src/providers/auth_provider.dart

Co-authored-by: Guillaume Bernos <[email protected]>

Co-authored-by: Guillaume Bernos <[email protected]>
  • Loading branch information
lesnitsky and Lyokone authored Dec 1, 2022
1 parent 51941df commit 5b11e80
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,14 @@ abstract class AuthProvider<T extends AuthListener, K extends AuthCredential> {
linkWithCredential(credential);
break;
case AuthAction.signIn:
// Only email provider has a different action for sign in and sign up
// and implements it's own sign up logic.
case AuthAction.signUp:
signInWithCredential(credential);
break;
case AuthAction.none:
authListener.onCredentialReceived(credential);
break;
default:
throw Exception('$runtimeType should handle $action');
}
}
}

0 comments on commit 5b11e80

Please sign in to comment.