UNPKG

voluptasmollitia

Version:
25 lines (14 loc) 838 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [GithubAuthProvider](./auth.githubauthprovider.md) &gt; [credentialFromResult](./auth.githubauthprovider.credentialfromresult.md) ## GithubAuthProvider.credentialFromResult() method Used to extract the underlying [OAuthCredential](./auth.oauthcredential.md) from a [UserCredential](./auth.usercredential.md)<!-- -->. <b>Signature:</b> ```typescript static credentialFromResult(userCredential: UserCredential): OAuthCredential | null; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | userCredential | [UserCredential](./auth.usercredential.md) | The user credential. | <b>Returns:</b> [OAuthCredential](./auth.oauthcredential.md) \| null