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
@@ -7,7 +7,7 @@ function createAttachmentService({ imapClient, folderPath, parseForAttachments,
const filename = String(input?.filename || 'attachment');
if (!Number.isInteger(uid) || uid < 1) throw new Error('That message could not be identified.');
const client = imapClient(account);
const client = await imapClient(account);
try {
await client.connect();
const mailboxPath = await folderPath(client, folder);