UNPKG

voluptasmollitia

Version:
25 lines (14 loc) 727 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [SAMLAuthProvider](./auth.samlauthprovider.md) &gt; [credentialFromJSON](./auth.samlauthprovider.credentialfromjson.md) ## SAMLAuthProvider.credentialFromJSON() method Creates an [AuthCredential](./auth.authcredential.md) from a JSON string or a plain object. <b>Signature:</b> ```typescript static credentialFromJSON(json: string | object): AuthCredential; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | json | string \| object | A plain object or a JSON string | <b>Returns:</b> [AuthCredential](./auth.authcredential.md)