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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user