summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/helpers/identifyRegistrationError.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-03-04 16:37:25 -0800
committerMatthew Miller <matthew@millerti.me>2022-03-04 16:37:25 -0800
commitd7824fcb0c5d88fc3726b81b2618dd122c24e71f (patch)
tree2268e708b9391128a1c9d02734825f7d496e870d /packages/browser/src/helpers/identifyRegistrationError.ts
parent701fa108dad56d8a2ad9017210f96e6821d84e31 (diff)
Clarify InvalidStateError message
Diffstat (limited to 'packages/browser/src/helpers/identifyRegistrationError.ts')
-rw-r--r--packages/browser/src/helpers/identifyRegistrationError.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/browser/src/helpers/identifyRegistrationError.ts b/packages/browser/src/helpers/identifyRegistrationError.ts
index a49a0b8..d48d194 100644
--- a/packages/browser/src/helpers/identifyRegistrationError.ts
+++ b/packages/browser/src/helpers/identifyRegistrationError.ts
@@ -33,7 +33,7 @@ export function identifyRegistrationError({ error, options }: {
// https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 20)
// https://www.w3.org/TR/webauthn-2/#sctn-op-make-cred (Step 3)
return new WebAuthnError(
- 'The user attempted to re-register an authenticator',
+ 'The authenticator was previously registered',
);
} else if (error.name === 'NotAllowedError') {
// https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 20)