@idsoftsource/initial-process 4.1.2 → 4.1.3
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.
package/index.d.ts
CHANGED
|
@@ -4655,25 +4655,48 @@ declare class MaintenanceComponent {
|
|
|
4655
4655
|
static ɵcmp: i0.ɵɵComponentDeclaration<MaintenanceComponent, "app-maintenance", never, {}, {}, never, never, true, never>;
|
|
4656
4656
|
}
|
|
4657
4657
|
|
|
4658
|
-
|
|
4658
|
+
/**
|
|
4659
|
+
* Where a signed-in user with an unverified email lands.
|
|
4660
|
+
*
|
|
4661
|
+
* - **Re-checks on arrival and on demand.** Verification happens in the
|
|
4662
|
+
* user's mail client, in another tab, so the claim in this tab's token is
|
|
4663
|
+
* stale by definition. `getAccessTokenSilently({ cacheMode: 'off' })`
|
|
4664
|
+
* re-issues it, and a fresh `email_verified` moves them straight on — via
|
|
4665
|
+
* `replaceUrl`, so this page doesn't sit in their back history.
|
|
4666
|
+
* - **Rate-limits the resend.** A 30-second cooldown after each successful
|
|
4667
|
+
* send, because the button is otherwise an open invitation to spam their
|
|
4668
|
+
* own inbox (and our sending reputation).
|
|
4669
|
+
*/
|
|
4670
|
+
declare class VerifyEmailComponent implements OnDestroy {
|
|
4659
4671
|
private libConfig;
|
|
4660
|
-
|
|
4661
|
-
private
|
|
4662
|
-
private
|
|
4663
|
-
private
|
|
4664
|
-
private
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4672
|
+
private readonly auth;
|
|
4673
|
+
private readonly tokenService;
|
|
4674
|
+
private readonly userService;
|
|
4675
|
+
private readonly authLogoutService;
|
|
4676
|
+
private readonly router;
|
|
4677
|
+
private readonly destroyRef;
|
|
4678
|
+
protected readonly email: i0.WritableSignal<string>;
|
|
4679
|
+
protected readonly pageLoader: i0.WritableSignal<boolean>;
|
|
4680
|
+
protected readonly checking: i0.WritableSignal<boolean>;
|
|
4681
|
+
protected readonly sending: i0.WritableSignal<boolean>;
|
|
4682
|
+
protected readonly sent: i0.WritableSignal<boolean>;
|
|
4683
|
+
protected readonly error: i0.WritableSignal<string>;
|
|
4684
|
+
protected readonly failures: i0.WritableSignal<string[]>;
|
|
4685
|
+
protected readonly cooldown: i0.WritableSignal<number>;
|
|
4686
|
+
private timer;
|
|
4687
|
+
constructor(libConfig: LibraryConfig);
|
|
4676
4688
|
ngOnDestroy(): void;
|
|
4689
|
+
/**
|
|
4690
|
+
* Re-read the auth0 claims and leave once the address is verified.
|
|
4691
|
+
* `silent` keeps the page loader/error off the initial check, which
|
|
4692
|
+
* shouldn't look like an action the user started.
|
|
4693
|
+
*/
|
|
4694
|
+
protected recheck(silent?: boolean): void;
|
|
4695
|
+
protected resend(): void;
|
|
4696
|
+
protected logout(): Promise<void>;
|
|
4697
|
+
private startCooldown;
|
|
4698
|
+
private stopTimer;
|
|
4699
|
+
private showFailure;
|
|
4677
4700
|
static ɵfac: i0.ɵɵFactoryDeclaration<VerifyEmailComponent, never>;
|
|
4678
4701
|
static ɵcmp: i0.ɵɵComponentDeclaration<VerifyEmailComponent, "app-verify-email", never, {}, {}, never, never, true, never>;
|
|
4679
4702
|
}
|