Stay organized with collections
Save and categorize content based on your preferences.
Properties
providerId
providerId: string
signInMethod
signInMethod: string
Methods
toJSON
- toJSON
(
)
:
Object
-
Returns Object
Static fromJSON
- fromJSON
(
json
:
Object
|
string
)
:
AuthCredential
|
null
-
Parameters
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-27 UTC.
[null,null,["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/node/firebase).\n- [auth](/docs/reference/node/firebase.auth).\n- AuthCredential \nInterface that represents the credentials returned by an auth provider.\nImplementations specify the details about each auth provider's credential\nrequirements.\n\nIndex\n\nProperties\n\n- [providerId](/docs/reference/node/firebase.auth.AuthCredential#providerid)\n- [signInMethod](/docs/reference/node/firebase.auth.AuthCredential#signinmethod)\n\nMethods\n\n- [toJSON](/docs/reference/node/firebase.auth.AuthCredential#tojson)\n- [fromJSON](/docs/reference/node/firebase.auth.AuthCredential#fromjson)\n\nProperties\n\nproviderId \nproviderId: string \nThe authentication provider ID for the credential.\nFor example, 'facebook.com', or 'google.com'.\n\nsignInMethod \nsignInMethod: string \nThe authentication sign in method for the credential.\nFor example, 'password', or 'emailLink. This corresponds to the sign-in\nmethod identifier as returned in\n[firebase.auth.Auth.fetchSignInMethodsForEmail](/docs/reference/node/firebase.auth.Auth#fetchsigninmethodsforemail).\n\nMethods\n\ntoJSON\n\n- toJSON ( ) : Object\n- Returns a JSON-serializable representation of this object.\n\n Returns Object\n\nStatic fromJSON\n\n- fromJSON ( json : Object \\| string ) : [AuthCredential](/docs/reference/node/firebase.auth.AuthCredential) \\| null\n- Static method to deserialize a JSON representation of an object into an\n [firebase.auth.AuthCredential](/docs/reference/node/firebase.auth.AuthCredential). Input can be either Object or the\n stringified representation of the object. When string is provided,\n JSON.parse would be called first. If the JSON input does not represent\n an`AuthCredential`, null is returned.\n\n Parameters\n -\n\n json: Object \\| string \n The plain object representation of an\n AuthCredential.\n\nReturns [AuthCredential](/docs/reference/node/firebase.auth.AuthCredential) \\| null"]]
Interface that represents the credentials returned by an auth provider. Implementations specify the details about each auth provider's credential requirements.