UNPKG

voluptasmollitia

Version:
25 lines (14 loc) 791 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [PhoneAuthProvider](./auth.phoneauthprovider.md) &gt; [credentialFromResult](./auth.phoneauthprovider.credentialfromresult.md) ## PhoneAuthProvider.credentialFromResult() method Generates an [AuthCredential](./auth.authcredential.md) from a [UserCredential](./auth.usercredential.md)<!-- -->. <b>Signature:</b> ```typescript static credentialFromResult(userCredential: UserCredential): AuthCredential | null; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | userCredential | [UserCredential](./auth.usercredential.md) | | <b>Returns:</b> [AuthCredential](./auth.authcredential.md) \| null