Sign In With Email and Password

Use the signInWithEmailAndPassword method to allow users to sign in to the application using their email and password.

Ensure you have enabled the Email/Password sign-in authentication method in your Firebase project.

Method

final userCredential = await FirebaseApp.firebaseAuth?.signInWithEmailAndPassword(email, password);

Parameters

  • email (String): The user's email address.

  • password (String): The user's password.

Return

  • UserCredential?: Returns a UserCredential object containing the user's sign-in information.

This method authenticates users with their email and password, returning their credentials upon successful sign.

Last updated