Home > @firebase/auth > SAMLAuthProvider > credentialFromJSON
SAMLAuthProvider.credentialFromJSON() method
Creates an AuthCredential from a JSON string or a plain object.
Signature:
static credentialFromJSON(json: string | object): AuthCredential;
Parameters
Parameter | Type | Description |
---|---|---|
json | string | object | A plain object or a JSON string |
Returns: