The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

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:

AuthCredential