summaryrefslogtreecommitdiffhomepage
path: root/packages/browser/src/methods/startAuthentication.ts
diff options
context:
space:
mode:
authorMatthew Miller <matthew@millerti.me>2022-06-20 11:40:51 -0700
committerMatthew Miller <matthew@millerti.me>2022-06-20 11:40:51 -0700
commit8aec51c85d2438eee6250ad859563ba9f9704a76 (patch)
treec26c9456013ae470d4ed67fcf2083d68e532d8a6 /packages/browser/src/methods/startAuthentication.ts
parent34cad8c805bf85e1523102312b6b0cf4967bc195 (diff)
Reset abort service after API call outcome
Diffstat (limited to 'packages/browser/src/methods/startAuthentication.ts')
-rw-r--r--packages/browser/src/methods/startAuthentication.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/browser/src/methods/startAuthentication.ts b/packages/browser/src/methods/startAuthentication.ts
index 0ab7e6b..f4c3bb5 100644
--- a/packages/browser/src/methods/startAuthentication.ts
+++ b/packages/browser/src/methods/startAuthentication.ts
@@ -82,6 +82,8 @@ export async function startAuthentication(
credential = (await navigator.credentials.get(options)) as AuthenticationCredential;
} catch (err) {
throw identifyAuthenticationError({ error: err as Error, options });
+ } finally {
+ webauthnAbortService.reset();
}
if (!credential) {