Implemented desktop OAuth2 account setup for Google and Microsoft. The flow uses the system browser and PKCE; access and refresh tokens stay in the main process and encrypted account store. OAuth connections use fixed provider endpoints, and existing password-based accounts remain supported. Android remains password-based in this phase.

This commit is contained in:
2026-10-17 00:51:23 +03:00
parent 1ef934045f
commit ea825adcc1
29 changed files with 943 additions and 71 deletions
+1
View File
@@ -4,6 +4,7 @@ contextBridge.exposeInMainWorld('daybreakMail', {
getAppVersion: () => ipcRenderer.invoke('app:get-version'),
getAccount: () => ipcRenderer.invoke('mail:get-account'),
listAccounts: () => ipcRenderer.invoke('mail:list-accounts'),
listOAuthProviders: () => ipcRenderer.invoke('mail:list-oauth-providers'),
selectAccount: id => ipcRenderer.invoke('mail:select-account', id),
removeAccount: id => ipcRenderer.invoke('mail:remove-account', id),
connect: details => ipcRenderer.invoke('mail:connect', details),