@franzzemen/brokenstock-shell 0.10.6 → 0.10.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4455,6 +4455,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4455
4455
|
}]
|
|
4456
4456
|
}
|
|
4457
4457
|
});
|
|
4458
|
+
const PASSKEY_WAIT_AGAIN_MS = 15e3;
|
|
4458
4459
|
var Login = class Login {
|
|
4459
4460
|
#postLoginRoute;
|
|
4460
4461
|
#commandService;
|
|
@@ -4462,6 +4463,7 @@ var Login = class Login {
|
|
|
4462
4463
|
#activatedRoute;
|
|
4463
4464
|
#autofill;
|
|
4464
4465
|
#autofillSettled;
|
|
4466
|
+
#autofillAgain;
|
|
4465
4467
|
constructor(authenticationService, router) {
|
|
4466
4468
|
this.authenticationService = authenticationService;
|
|
4467
4469
|
this.router = router;
|
|
@@ -4489,12 +4491,14 @@ var Login = class Login {
|
|
|
4489
4491
|
this.#startPasskeyAutofill();
|
|
4490
4492
|
}
|
|
4491
4493
|
ngOnDestroy() {
|
|
4494
|
+
clearTimeout(this.#autofillAgain);
|
|
4492
4495
|
this.#autofill?.abort();
|
|
4493
4496
|
}
|
|
4494
4497
|
async onPasskey() {
|
|
4495
4498
|
this.errors = [];
|
|
4496
4499
|
this.passkeyHint.set(false);
|
|
4497
4500
|
this.submitted = true;
|
|
4501
|
+
clearTimeout(this.#autofillAgain);
|
|
4498
4502
|
this.#autofill?.abort();
|
|
4499
4503
|
this.#autofill = void 0;
|
|
4500
4504
|
const settled = this.#autofillSettled;
|
|
@@ -4521,7 +4525,9 @@ var Login = class Login {
|
|
|
4521
4525
|
ndx: 0,
|
|
4522
4526
|
message: typeof err === "string" ? err : "Unable to sign in with a passkey"
|
|
4523
4527
|
});
|
|
4524
|
-
if (
|
|
4528
|
+
if (signal?.aborted) return;
|
|
4529
|
+
if (conditional && err !== "passkey-cancelled") return;
|
|
4530
|
+
this.#autofillAgain = setTimeout(() => void this.#startPasskeyAutofill(), PASSKEY_WAIT_AGAIN_MS);
|
|
4525
4531
|
});
|
|
4526
4532
|
}
|
|
4527
4533
|
#resolvePostLoginUrl() {
|