Skip to content

Instantly share code, notes, and snippets.

@NoaTubic
Last active April 25, 2022 12:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NoaTubic/4220bc06901d35ef1d0bb36f4982e0e6 to your computer and use it in GitHub Desktop.
Save NoaTubic/4220bc06901d35ef1d0bb36f4982e0e6 to your computer and use it in GitHub Desktop.
Future<User> signInWithEmail(
BuildContext context, String email, String password) async {
final signInFunc = () => FirebaseAuth.instance
.signInWithEmailAndPassword(email: email.trim(), password: password);
return signInOrCreateAccount(context, signInFunc);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment