mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-01 10:33:14 +08:00
[cloud-*] (imap) 🎨 Fixup imap settings resolution in gmail auth
Summary: `generateXOAuth2Token` seems to be better placed inside gmail-oauth-helpers Test Plan: none :( Reviewers: khamidou, evan, halla Reviewed By: evan, halla Differential Revision: https://phab.nylas.com/D4048
This commit is contained in:
parent
3a626988c8
commit
830b300ebc
1 changed files with 0 additions and 7 deletions
|
@ -39,13 +39,6 @@ class IMAPConnection extends EventEmitter {
|
|||
return new IMAPConnection(...args).connect()
|
||||
}
|
||||
|
||||
static generateXOAuth2Token(username, accessToken) {
|
||||
// See https://developers.google.com/gmail/xoauth2_protocol
|
||||
// for more details.
|
||||
const s = `user=${username}\x01auth=Bearer ${accessToken}\x01\x01`
|
||||
return new Buffer(s).toString('base64');
|
||||
}
|
||||
|
||||
static asyncResolveIMAPSettings(baseSettings) {
|
||||
const settings = {
|
||||
host: baseSettings.imap_host,
|
||||
|
|
Loading…
Reference in a new issue