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 -1
View File
@@ -25,7 +25,7 @@ function createMailboxSyncService({
async function syncAccountMailboxes(account) {
await flushMailOutbox(account);
const generation = backgroundSyncGenerations.get(account.id) || 0;
const client = imapClient(account);
const client = await imapClient(account);
try {
await client.connect();
const mailboxes = await client.list();