diff options
author | Matthew Miller <matthew@millerti.me> | 2023-03-15 18:46:41 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-15 18:46:41 -0700 |
commit | cc6b4e83d0c8087f78c1851a5b0f60a1d7223ec6 (patch) | |
tree | ca62fa0690780c7dace0d3a956e10110c5d5e277 /packages/browser/src/helpers/structs.ts | |
parent | 70f7e79b24237308398334df834dd4cf2d398512 (diff) | |
parent | ac97005f39974154dc2af9514294bbe217a252f6 (diff) |
Merge pull request #367 from MasterKale/feat/better-errors
feat/better-errors
Diffstat (limited to 'packages/browser/src/helpers/structs.ts')
-rw-r--r-- | packages/browser/src/helpers/structs.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/packages/browser/src/helpers/structs.ts b/packages/browser/src/helpers/structs.ts deleted file mode 100644 index 8ae01b7..0000000 --- a/packages/browser/src/helpers/structs.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * 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. - */ -export class WebAuthnError extends Error { - constructor(message: string, name = 'WebAuthnError') { - super(message); - this.name = name; - } -} |