diff options
author | Matthew Miller <matthew@millerti.me> | 2022-06-20 11:40:51 -0700 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2022-06-20 11:40:51 -0700 |
commit | 8aec51c85d2438eee6250ad859563ba9f9704a76 (patch) | |
tree | c26c9456013ae470d4ed67fcf2083d68e532d8a6 /packages/browser/src/helpers/webAuthnAbortService.ts | |
parent | 34cad8c805bf85e1523102312b6b0cf4967bc195 (diff) |
Reset abort service after API call outcome
Diffstat (limited to 'packages/browser/src/helpers/webAuthnAbortService.ts')
-rw-r--r-- | packages/browser/src/helpers/webAuthnAbortService.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/browser/src/helpers/webAuthnAbortService.ts b/packages/browser/src/helpers/webAuthnAbortService.ts index 35e2f29..2107a5b 100644 --- a/packages/browser/src/helpers/webAuthnAbortService.ts +++ b/packages/browser/src/helpers/webAuthnAbortService.ts @@ -18,6 +18,10 @@ class WebAuthnAbortService { this.controller = new AbortController(); return this.controller.signal; } + + reset() { + this.controller = undefined; + } } export const webauthnAbortService = new WebAuthnAbortService(); |