mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
[PM-9465] Move shared ipc keys to main process (#9944)
* Remove old biometrics masterkey logic * Move shared ipc keys to main process * Update apps/desktop/src/platform/services/ephemeral-value-storage.main.service.ts Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com> * Extract ephemeral store functions to it's own object --------- Co-authored-by: Daniel García <dani-garcia@users.noreply.github.com>
This commit is contained in:
@@ -99,6 +99,14 @@ const crypto = {
|
||||
ipcRenderer.invoke("crypto.argon2", { password, salt, iterations, memory, parallelism }),
|
||||
};
|
||||
|
||||
const ephemeralStore = {
|
||||
setEphemeralValue: (key: string, value: string): Promise<void> =>
|
||||
ipcRenderer.invoke("setEphemeralValue", { key, value }),
|
||||
getEphemeralValue: (key: string): Promise<string> => ipcRenderer.invoke("getEphemeralValue", key),
|
||||
removeEphemeralValue: (key: string): Promise<void> =>
|
||||
ipcRenderer.invoke("deleteEphemeralValue", key),
|
||||
};
|
||||
|
||||
export default {
|
||||
versions: {
|
||||
app: (): Promise<string> => ipcRenderer.invoke("appVersion"),
|
||||
@@ -156,6 +164,7 @@ export default {
|
||||
powermonitor,
|
||||
nativeMessaging,
|
||||
crypto,
|
||||
ephemeralStore,
|
||||
};
|
||||
|
||||
function deviceType(): DeviceType {
|
||||
|
||||
Reference in New Issue
Block a user