diff options
author | Matthew Miller <matthew@millerti.me> | 2023-03-15 21:23:25 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2023-03-15 21:23:25 -0700 |
commit | f3ea79a85070c986eb940491bc453d90ac037ec3 (patch) | |
tree | 9a073e4355af5541ef7aee2ef84a112c30cb8406 /packages/browser/src/helpers/identifyRegistrationError.ts | |
parent | b0fab5c583110f41dde3394712c90e90576b5f70 (diff) |
Fix AbortSignal error detection
Diffstat (limited to 'packages/browser/src/helpers/identifyRegistrationError.ts')
-rw-r--r-- | packages/browser/src/helpers/identifyRegistrationError.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/browser/src/helpers/identifyRegistrationError.ts b/packages/browser/src/helpers/identifyRegistrationError.ts index 4649fb9..02c9dac 100644 --- a/packages/browser/src/helpers/identifyRegistrationError.ts +++ b/packages/browser/src/helpers/identifyRegistrationError.ts @@ -18,7 +18,7 @@ export function identifyRegistrationError({ } if (error.name === 'AbortError') { - if (options.signal === new AbortController().signal) { + if (options.signal instanceof AbortSignal) { // https://www.w3.org/TR/webauthn-2/#sctn-createCredential (Step 16) return new WebAuthnError({ message: 'Registration ceremony was sent an abort signal', |