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:
@@ -8,7 +8,7 @@ function createMailReader({
|
||||
}) {
|
||||
async function fetchMailbox(account, folder = 'Inbox', offset = 0, limit = 20, filters = {}) {
|
||||
if (folder === 'Snoozed') return fetchSnoozedMailbox(account, offset, limit);
|
||||
const client = imapClient(account);
|
||||
const client = await imapClient(account);
|
||||
try {
|
||||
await client.connect();
|
||||
const mailboxPath = await folderPath(client, folder);
|
||||
|
||||
Reference in New Issue
Block a user