Home > @firebase/auth > GoogleAuthProvider > credentialFromResult
GoogleAuthProvider.credentialFromResult() method
Used to extract the underlying OAuthCredential from a UserCredential.
Signature:
static credentialFromResult(userCredential: UserCredential): OAuthCredential | null;
Parameters
Parameter | Type | Description |
---|---|---|
userCredential | UserCredential | The user credential. |
Returns:
OAuthCredential | null