diff options
author | Matthew Miller <matthew@millerti.me> | 2022-03-07 20:32:20 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-03-07 20:32:20 -0800 |
commit | 635bd46e3a4c585f413af8924a4a825d6ba42e21 (patch) | |
tree | 6bb644325e4df0f5a49868960845014f47de34ce /packages/browser/src/helpers | |
parent | c074797a743c293c54aca6955af6b3f6d46b8a27 (diff) |
Fix some copy-paste issues
Diffstat (limited to 'packages/browser/src/helpers')
-rw-r--r-- | packages/browser/src/helpers/identifyAuthenticationError.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/browser/src/helpers/identifyAuthenticationError.ts b/packages/browser/src/helpers/identifyAuthenticationError.ts index 4c2b6ac..bf88628 100644 --- a/packages/browser/src/helpers/identifyAuthenticationError.ts +++ b/packages/browser/src/helpers/identifyAuthenticationError.ts @@ -21,7 +21,7 @@ export function identifyAuthenticationError({ if (error.name === 'AbortError') { if (options.signal === (new AbortController()).signal) { // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 16) - return new WebAuthnError('Registration ceremony was sent an abort signal (AbortError)'); + return new WebAuthnError('Authentication ceremony was sent an abort signal (AbortError)'); } } else if (error.name === 'NotAllowedError') { if (publicKey.allowCredentials?.length) { @@ -34,7 +34,7 @@ export function identifyAuthenticationError({ // https://www.w3.org/TR/webauthn-2/#sctn-discover-from-external-source (Step 18) // https://www.w3.org/TR/webauthn-2/#sctn-op-get-assertion (Step 7) - return new WebAuthnError('User clicked cancel, or the registration ceremony timed out (NotAllowedError)'); + return new WebAuthnError('User clicked cancel, or the authentication ceremony timed out (NotAllowedError)'); } else if (error.name === 'SecurityError') { const effectiveDomain = window.location.hostname; if (!isValidDomain(effectiveDomain)) { |