Home > @firebase/auth > OAuthProvider > credentialFromError
OAuthProvider.credentialFromError() method
Used to extract the underlying OAuthCredential from a AuthError which was thrown during a sign-in, link, or reauthenticate operation.
Signature:
static credentialFromError(error: FirebaseError): OAuthCredential | null;
Parameters
Parameter | Type | Description |
---|---|---|
error | FirebaseError |
Returns:
OAuthCredential | null