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

WebAuthnError

A custom Error used to return a more nuanced error detailing why one of the eight documented errors in the spec was raised after calling navigator.credentials.create() or navigator.credentials.get():

  • AbortError
  • ConstraintError
  • InvalidStateError
  • NotAllowedError
  • NotSupportedError
  • SecurityError
  • TypeError
  • UnknownError

Error messages were determined through investigation of the spec to determine under which scenarios a given error would be raised.

class WebAuthnError extends Error {
constructor({ message, code, cause, name }: {
message: string;
code: WebAuthnErrorCode;
cause?: Error | unknown;
name?: string;
}
);
protected __isWebAuthnError: boolean;
code: WebAuthnErrorCode;
}

§Extends

§
Error
[src]

§Constructors

§
new WebAuthnError({ message, code, cause, name }: {
message: string;
code: WebAuthnErrorCode;
cause?: Error | unknown;
name?: string;
}
)
[src]

§Properties

§
__isWebAuthnError: boolean
[src]
§
code: WebAuthnErrorCode
[src]