Sign In With Credential

Use the signInWithCredential method to allow users to sign in to the application using a credential object, such as an OAuth credential.

Method

final userCredential = await FirebaseApp.firebaseAuth?.signInWithCredential(credential);

Parameters

  • credential (AuthCredential): The authentication credential object (e.g., OAuth credential or email/password credential) used to sign in.

Return

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

This method allows users to sign in using an AuthCredential object, typically acquired through an OAuth provider or other authentication mechanisms.

Last updated