The authentication provider ID for the credential.
For example, 'facebook.com', or 'google.com'.
signInMethod
signInMethod:string
The authentication sign in method for the credential.
For example, 'password', or 'emailLink. This corresponds to the sign-in
method identifier as returned in
firebase.auth.Auth.fetchSignInMethodsForEmail.
Methods
toJSON
toJSON
(): Object
Returns a JSON-serializable representation of this object.
Static method to deserialize a JSON representation of an object into an
firebase.auth.AuthCredential. Input can be either Object or the
stringified representation of the object. When string is provided,
JSON.parse would be called first. If the JSON input does not represent
anAuthCredential, null is returned.
Parameters
json: Object | string
The plain object representation of an
AuthCredential.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-07-27 UTC."],[],[],null,["- [firebase](/docs/reference/js/v8/firebase).\n- [auth](/docs/reference/js/v8/firebase.auth).\n- PhoneAuthCredential \nClasses that represents the Phone Auth credentials returned by a\n[firebase.auth.PhoneAuthProvider](/docs/reference/js/v8/firebase.auth.PhoneAuthProvider).\n\nIndex\n\nConstructors\n\n- [constructor](/docs/reference/js/v8/firebase.auth.PhoneAuthCredential#constructor)\n\nProperties\n\n- [providerId](/docs/reference/js/v8/firebase.auth.PhoneAuthCredential#providerid)\n- [signInMethod](/docs/reference/js/v8/firebase.auth.PhoneAuthCredential#signinmethod)\n\nMethods\n\n- [toJSON](/docs/reference/js/v8/firebase.auth.PhoneAuthCredential#tojson)\n- [fromJSON](/docs/reference/js/v8/firebase.auth.PhoneAuthCredential#fromjson)\n\nConstructors\n\nPrivate constructor\n\n- new PhoneAuthCredential ( ) : [PhoneAuthCredential](/docs/reference/js/v8/firebase.auth.PhoneAuthCredential)\n-\n\n Returns [PhoneAuthCredential](/docs/reference/js/v8/firebase.auth.PhoneAuthCredential)\n\nProperties\n\nproviderId \nproviderId: string\nInherited from [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential).[providerId](/docs/reference/js/v8/firebase.auth.AuthCredential#providerid) \nThe authentication provider ID for the credential.\nFor example, 'facebook.com', or 'google.com'.\n\nsignInMethod \nsignInMethod: string\nInherited from [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential).[signInMethod](/docs/reference/js/v8/firebase.auth.AuthCredential#signinmethod) \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/js/v8/firebase.auth.Auth#fetchsigninmethodsforemail).\n\nMethods\n\ntoJSON\n\n- toJSON ( ) : Object\n-\n Inherited from [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential).[toJSON](/docs/reference/js/v8/firebase.auth.AuthCredential#tojson) \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/js/v8/firebase.auth.AuthCredential) \\| null\n-\n Inherited from [AuthCredential](/docs/reference/js/v8/firebase.auth.AuthCredential).[fromJSON](/docs/reference/js/v8/firebase.auth.AuthCredential#fromjson) \n Static method to deserialize a JSON representation of an object into an\n [firebase.auth.AuthCredential](/docs/reference/js/v8/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/js/v8/firebase.auth.AuthCredential) \\| null"]]
Classes that represents the Phone Auth credentials returned by a firebase.auth.PhoneAuthProvider.