AuthCredential class Stay organized with collections Save and categorize content based on your preferences.
Interface that represents the credentials returned by anAuthProvider.
Implementations specify the details about each auth provider's credential requirements.
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend theAuthCredential class.
Signature:
exportdeclareclassAuthCredentialProperties
| Property | Modifiers | Type | Description |
|---|---|---|---|
| providerId | string | The authentication provider ID for the credential. | |
| signInMethod | string | The authentication sign in method for the credential. |
Methods
| Method | Modifiers | Description |
|---|---|---|
| toJSON() | Returns a JSON-serializable representation of this object. |
AuthCredential.providerId
The authentication provider ID for the credential.
For example, 'facebook.com', or 'google.com'.
Signature:
readonlyproviderId:string;AuthCredential.signInMethod
The authentication sign in method for the credential.
For example,SignInMethod.EMAIL_PASSWORD, orSignInMethod.EMAIL_LINK. This corresponds to the sign-in method identifier as returned infetchSignInMethodsForEmail().
Signature:
readonlysignInMethod:string;AuthCredential.toJSON()
Returns a JSON-serializable representation of this object.
Signature:
toJSON():object;Returns:
object
a JSON-serializable representation of this object.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-19 UTC.