mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-11 10:10:25 +01:00
[PM-9980] Turn off cache for certain keys (#10226)
* Turn Off Cache For DeviceKey * Turn Off Cache For AppId
This commit is contained in:
parent
c91f9146da
commit
f1c177b3cf
@ -37,6 +37,7 @@ export const DEVICE_KEY = new UserKeyDefinition<DeviceKey | null>(
|
|||||||
deserializer: (deviceKey) =>
|
deserializer: (deviceKey) =>
|
||||||
deviceKey ? (SymmetricCryptoKey.fromJSON(deviceKey) as DeviceKey) : null,
|
deviceKey ? (SymmetricCryptoKey.fromJSON(deviceKey) as DeviceKey) : null,
|
||||||
clearOn: [], // Device key is needed to log back into device, so we can't clear it automatically during lock or logout
|
clearOn: [], // Device key is needed to log back into device, so we can't clear it automatically during lock or logout
|
||||||
|
cleanupDelayMs: 0,
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ import { APPLICATION_ID_DISK, GlobalStateProvider, KeyDefinition } from "../stat
|
|||||||
|
|
||||||
export const APP_ID_KEY = new KeyDefinition(APPLICATION_ID_DISK, "appId", {
|
export const APP_ID_KEY = new KeyDefinition(APPLICATION_ID_DISK, "appId", {
|
||||||
deserializer: (value: string) => value,
|
deserializer: (value: string) => value,
|
||||||
|
cleanupDelayMs: 0,
|
||||||
});
|
});
|
||||||
export const ANONYMOUS_APP_ID_KEY = new KeyDefinition(APPLICATION_ID_DISK, "anonymousAppId", {
|
export const ANONYMOUS_APP_ID_KEY = new KeyDefinition(APPLICATION_ID_DISK, "anonymousAppId", {
|
||||||
deserializer: (value: string) => value,
|
deserializer: (value: string) => value,
|
||||||
|
Loading…
Reference in New Issue
Block a user