diff options
Diffstat (limited to 'packages/browser/src/helpers/webAuthnAbortService.ts')
-rw-r--r-- | packages/browser/src/helpers/webAuthnAbortService.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/packages/browser/src/helpers/webAuthnAbortService.ts b/packages/browser/src/helpers/webAuthnAbortService.ts index 479df55..8955526 100644 --- a/packages/browser/src/helpers/webAuthnAbortService.ts +++ b/packages/browser/src/helpers/webAuthnAbortService.ts @@ -15,8 +15,10 @@ class WebAuthnAbortService { this.controller.abort('Cancelling existing WebAuthn API call for new one'); } - this.controller = new AbortController(); - return this.controller.signal; + const newController = new AbortController(); + + this.controller = newController; + return newController.signal; } } |