Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

identifyRegistrationError

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

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

§Parameters

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

§Return Type

§

A WebAuthnError with a specific error code