mirror of
https://github.com/bitwarden/browser
synced 2026-01-06 18:43:25 +00:00
Use user definition clearon events for billing (#8589)
This commit is contained in:
@@ -3,19 +3,20 @@ import { map, Observable, of, switchMap } from "rxjs";
|
||||
import {
|
||||
ActiveUserState,
|
||||
BILLING_DISK,
|
||||
KeyDefinition,
|
||||
StateProvider,
|
||||
UserKeyDefinition,
|
||||
} from "../../../platform/state";
|
||||
import {
|
||||
BillingAccountProfile,
|
||||
BillingAccountProfileStateService,
|
||||
} from "../../abstractions/account/billing-account-profile-state.service";
|
||||
|
||||
export const BILLING_ACCOUNT_PROFILE_KEY_DEFINITION = new KeyDefinition<BillingAccountProfile>(
|
||||
export const BILLING_ACCOUNT_PROFILE_KEY_DEFINITION = new UserKeyDefinition<BillingAccountProfile>(
|
||||
BILLING_DISK,
|
||||
"accountProfile",
|
||||
{
|
||||
deserializer: (billingAccountProfile) => billingAccountProfile,
|
||||
clearOn: ["logout"],
|
||||
},
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user