Home > @firebase/auth > SAMLAuthProvider > credentialFromError
SAMLAuthProvider.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): AuthCredential | null;
Parameters
Parameter | Type | Description |
---|---|---|
error | FirebaseError |
Returns:
AuthCredential | null