java.lang.Object | |
↳ | com.google.firebase.auth.EmailAuthProvider |
Represents the email and password authentication mechanism. Use this class to obtain EmailAuthCredential
s.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | EMAIL_LINK_SIGN_IN_METHOD | Unique string identifier for email/link sign-in method. | |||||||||
String | EMAIL_PASSWORD_SIGN_IN_METHOD | Unique string identifier for email/password sign-in method. | |||||||||
String | PROVIDER_ID | Unique string identifier for this provider type. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a new instance of
AuthCredential that wraps a given email and password. | |||||||||||
Returns a new instance of
AuthCredential that wraps an email sign-in link. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Unique string identifier for email/link sign-in method. Indicates the signin methods signInWithEmailLink(String, String)
and signInWithCredential(AuthCredential)
with an EmailAuthCredential
generated by getCredentialWithLink(String, String)
.
Unique string identifier for email/password sign-in method. Indicates the signin methods signInWithEmailAndPassword(String, String)
and signInWithCredential(AuthCredential)
with an EmailAuthCredential
generated by getCredential(String, String)
.
Unique string identifier for this provider type.
Returns a new instance of AuthCredential
that wraps a given email and password. Used
when calling signInWithCredential(AuthCredential)
or linkWithCredential(AuthCredential)
.
Parameters | |
---|---|
email |
String |
password |
String |
Returns | |
---|---|
AuthCredential |
Returns a new instance of AuthCredential
that wraps an email sign-in link. Used when
calling signInWithCredential(AuthCredential)
or linkWithCredential(AuthCredential)
.
IllegalArgumentException
thrown if the emailLink
doesn't conform to the
expectations checked in isSignInWithEmailLink(String)
Parameters | |
---|---|
email |
String : the email to which the emailLink was sent |
emailLink |
String : a link generated by sendSignInLinkToEmail(String, ActionCodeSettings) |
Returns | |
---|---|
AuthCredential |
an AuthCredential that wraps the given email and emailLink .
Used when calling signInWithCredential(AuthCredential) , linkWithCredential(AuthCredential) , or reauthenticate(AuthCredential) .
|