feat(desktop): remember login credentials
Desktop Client Build / Resolve Build Metadata (push) Successful in 49s
Frontend CI / Frontend (push) Successful in 5m47s
Desktop Client Build / Build Desktop Client (push) Successful in 42m28s
Desktop Client Build / Publish Client Artifacts to NAS (push) Successful in 2m38s
Desktop Client Build / Resolve Build Metadata (push) Successful in 49s
Frontend CI / Frontend (push) Successful in 5m47s
Desktop Client Build / Build Desktop Client (push) Successful in 42m28s
Desktop Client Build / Publish Client Artifacts to NAS (push) Successful in 2m38s
This commit is contained in:
@@ -37,6 +37,11 @@ import {
|
||||
registerObservedRequestRendererTarget,
|
||||
} from './network-observer'
|
||||
import { getPlaywrightCDPPort, startHiddenPlaywrightReaper } from './playwright-cdp'
|
||||
import {
|
||||
clearSavedLoginCredentials,
|
||||
getSavedLoginCredentials,
|
||||
saveLoginCredentials,
|
||||
} from './login-credentials'
|
||||
import { initProcessMetricsSampler } from './process-metrics'
|
||||
import { registerRendererDevtoolsProxyTarget } from './renderer-devtools-proxy'
|
||||
import {
|
||||
@@ -925,6 +930,16 @@ function registerBridgeHandlers(): void {
|
||||
return null
|
||||
})
|
||||
ipcMain.handle('desktop:get-app-settings', () => getDesktopAppSettings())
|
||||
ipcMain.handle('desktop:get-login-credentials', () => getSavedLoginCredentials())
|
||||
safeHandle(
|
||||
'desktop:save-login-credentials',
|
||||
(_event, credentials: { identifier?: unknown; password?: unknown }) =>
|
||||
saveLoginCredentials({
|
||||
identifier: typeof credentials?.identifier === 'string' ? credentials.identifier : '',
|
||||
password: typeof credentials?.password === 'string' ? credentials.password : '',
|
||||
}),
|
||||
)
|
||||
ipcMain.handle('desktop:clear-login-credentials', () => clearSavedLoginCredentials())
|
||||
safeHandle(
|
||||
'desktop:set-app-setting',
|
||||
async (_event, key: DesktopAppSettingKey, value: boolean) => {
|
||||
|
||||
Reference in New Issue
Block a user