EmailAuthCredential constructor

EmailAuthCredential(
  1. {required String providerId,
  2. required String email,
  3. String? password,
  4. required String signInMethod,
  5. String? accessToken}
)

Constructs an EmailAuthCredential.

providerId The provider ID. email The email address. signInMethod The sign-in method. accessToken Optional access token.

Returns an EmailAuthCredential instance.

Example:

final credential = EmailAuthCredential(
  providerId: 'email',
  email: 'user@example.com',
  signInMethod: 'password',
);

Implementation

EmailAuthCredential(
    {required super.providerId,
    required this.email,
    this.password,
    required super.signInMethod, super.accessToken})
    : emailLink = null;