1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-22 12:24:01 +00:00

setup proof-of-concept for Vault/Billing

This commit is contained in:
rr-bw
2025-10-27 22:54:04 -07:00
parent 07258f1803
commit ec8a8719ae
6 changed files with 85 additions and 4 deletions

View File

@@ -142,8 +142,7 @@ export class RegistrationFinishComponent implements OnInit, OnDestroy {
// ```
// export const MarketingInitiative = Object.freeze({
// Premium: "premium",
// Families: "families",
// // Other variants in the future
// // Families: "families", // easy to add if asked to in the future
// } as const);
// -- Proof of Concept (end) --
@@ -211,11 +210,13 @@ export class RegistrationFinishComponent implements OnInit, OnDestroy {
await this.loginSuccessHandlerService.run(authenticationResult.userId);
// -- Proof of Concept (start) --
if (this.intendsToSetupPremium) {
await this.registrationFinishService.establishIntentToSetupPremium(
authenticationResult.userId,
);
}
// -- Proof of Concept (end) --
await this.router.navigate(["/vault"]);
} catch (e) {