identifyAuthenticationError

Attempt to intuit why an error was raised after calling navigator.credentials.get(). Maps browser errors to specific WebAuthn error codes for better debugging.

function identifyAuthenticationError({ error, options }: {
error: Error;
options: StrictOmit<CredentialRequestOptions, "publicKey"> & {};
}
): WebAuthnError;
§
identifyAuthenticationError({ error, options }: {
error: Error;
options: StrictOmit<CredentialRequestOptions, "publicKey"> & {};
}
): WebAuthnError
[src]

§Parameters

§
{ error, options }: {
error: Error;
options: StrictOmit<CredentialRequestOptions, "publicKey"> & {};
}
[src]

§Return Type

§

A WebAuthnError with a specific error code