diff options
Diffstat (limited to 'packages/browser/src')
-rw-r--r-- | packages/browser/src/helpers/webAuthnError.ts | 6 | ||||
-rw-r--r-- | packages/browser/src/index.ts | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/browser/src/helpers/webAuthnError.ts b/packages/browser/src/helpers/webAuthnError.ts index 56d71fd..1debec0 100644 --- a/packages/browser/src/helpers/webAuthnError.ts +++ b/packages/browser/src/helpers/webAuthnError.ts @@ -17,7 +17,7 @@ * scenarios a given error would be raised. */ export class WebAuthnError extends Error { - code: SimpleWebAuthnErrorCode; + code: WebAuthnErrorCode; constructor({ message, @@ -26,7 +26,7 @@ export class WebAuthnError extends Error { name, }: { message: string, - code: SimpleWebAuthnErrorCode, + code: WebAuthnErrorCode, cause: Error, name?: string, }) { @@ -41,7 +41,7 @@ export class WebAuthnError extends Error { } } -export type SimpleWebAuthnErrorCode = +export type WebAuthnErrorCode = 'ERROR_CEREMONY_ABORTED' | 'ERROR_INVALID_DOMAIN' | 'ERROR_INVALID_RP_ID' diff --git a/packages/browser/src/index.ts b/packages/browser/src/index.ts index d0133af..67c7c74 100644 --- a/packages/browser/src/index.ts +++ b/packages/browser/src/index.ts @@ -16,4 +16,4 @@ export { platformAuthenticatorIsAvailable, }; -export type { SimpleWebAuthnErrorCode } from './helpers/webAuthnError'; +export type { WebAuthnErrorCode } from './helpers/webAuthnError'; |