1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

[PM-26649] Prevent log-out when changing KDF settings (except old clients) (#16775)

* Prevent log-out when changing KDF settings (except old clients)

* test coverage

* logout reason enum
This commit is contained in:
Maciej Zieniuk
2025-10-21 11:26:48 +02:00
committed by GitHub
parent a15d6867f9
commit 20ddf3b6fd
6 changed files with 96 additions and 6 deletions

View File

@@ -37,6 +37,7 @@ export enum FeatureFlag {
PM25174_DisableType0Decryption = "pm-25174-disable-type-0-decryption",
WindowsBiometricsV2 = "pm-25373-windows-biometrics-v2",
UnlockWithMasterPasswordUnlockData = "pm-23246-unlock-with-master-password-unlock-data",
NoLogoutOnKdfChange = "pm-23995-no-logout-on-kdf-change",
/* Tools */
DesktopSendUIRefresh = "desktop-send-ui-refresh",
@@ -120,6 +121,7 @@ export const DefaultFeatureFlagValue = {
[FeatureFlag.PM25174_DisableType0Decryption]: FALSE,
[FeatureFlag.WindowsBiometricsV2]: FALSE,
[FeatureFlag.UnlockWithMasterPasswordUnlockData]: FALSE,
[FeatureFlag.NoLogoutOnKdfChange]: FALSE,
/* Platform */
[FeatureFlag.IpcChannelFramework]: FALSE,

View File

@@ -6,3 +6,4 @@ export * from "./http-status-code.enum";
export * from "./integration-type.enum";
export * from "./native-messaging-version.enum";
export * from "./notification-type.enum";
export * from "./push-notification-logout-reason.enum";

View File

@@ -0,0 +1,6 @@
export const PushNotificationLogOutReasonType = Object.freeze({
KdfChange: 0,
} as const);
export type PushNotificationLogOutReasonType =
(typeof PushNotificationLogOutReasonType)[keyof typeof PushNotificationLogOutReasonType];