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:
@@ -5,7 +5,7 @@ function createMessageActionService({ imapClient, folderPath, findSpecialMailbox
|
||||
const action = String(input?.action || '');
|
||||
if (!Number.isInteger(uid) || uid < 1) throw new Error('That message could not be identified.');
|
||||
if (!['star', 'unread', 'archive', 'delete', 'inbox'].includes(action)) throw new Error('That mail action is not supported.');
|
||||
const client = imapClient(account);
|
||||
const client = await imapClient(account);
|
||||
try {
|
||||
await client.connect();
|
||||
const sourcePath = await folderPath(client, folder);
|
||||
|
||||
Reference in New Issue
Block a user