EmailAuthProvider

class EmailAuthProvider


Represents the email and password authentication mechanism. Use this class to obtain s.

Summary

Constants

const String!

Unique string identifier for email/link sign-in method.

const String!

Unique string identifier for email/password sign-in method.

const String!
PROVIDER_ID = "password"

Unique string identifier for this provider type.

Public functions

java-static AuthCredential
getCredential(email: String, password: String)

Returns a new instance of AuthCredential that wraps a given email and password.

java-static AuthCredential
getCredentialWithLink(email: String, emailLink: String)

Returns a new instance of AuthCredential that wraps an email sign-in link.

Constants

const val EMAIL_LINK_SIGN_IN_METHOD = "emailLink": String!

Unique string identifier for email/link sign-in method. Indicates the signin methods signInWithEmailLink and signInWithCredential with an EmailAuthCredential generated by getCredentialWithLink.

EMAIL_PASSWORD_SIGN_IN_METHOD

const val EMAIL_PASSWORD_SIGN_IN_METHOD = "password": String!

Unique string identifier for email/password sign-in method. Indicates the signin methods signInWithEmailAndPassword and signInWithCredential with an EmailAuthCredential generated by getCredential.

PROVIDER_ID

const val PROVIDER_ID = "password": String!

Unique string identifier for this provider type.

Public functions

getCredential

java-static fun getCredential(email: String, password: String): AuthCredential

Returns a new instance of AuthCredential that wraps a given email and password. Used when calling signInWithCredential or linkWithCredential.

getCredentialWithLink

java-static fun getCredentialWithLink(email: String, emailLink: String): AuthCredential

Returns a new instance of AuthCredential that wraps an email sign-in link. Used when calling signInWithCredential or linkWithCredential.

Exceptions
Parameters
email: String

the email to which the emailLink was sent

emailLink: String

a link generated by sendSignInLinkToEmail

Returns
AuthCredential

an AuthCredential that wraps the given email and emailLink. Used when calling signInWithCredential, linkWithCredential, or reauthenticate.