mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
Required changes for refreshing access tokens.
This commit is contained in:
parent
f34a8f8f0a
commit
cb6f761df3
|
@ -60,6 +60,7 @@ export function makeGmailOAuthRequest(sessionKey, callback) {
|
|||
provider: 'gmail',
|
||||
settings: {
|
||||
xoauth2: remoteJSON.resolved_settings.xoauth2,
|
||||
expiry_date: remoteJSON.resolved_settings.expiry_date,
|
||||
},
|
||||
},
|
||||
success: (localJSON) => {
|
||||
|
|
|
@ -10,6 +10,8 @@ class N1CloudAPI {
|
|||
const env = NylasEnv.config.get('env')
|
||||
if (['development', 'local'].includes(env)) {
|
||||
this.APIRoot = "http://localhost:5100";
|
||||
} else if (env === 'staging') {
|
||||
this.APIRoot = "https://n1-staging.us-east-1.elasticbeanstalk.com/";
|
||||
} else {
|
||||
this.APIRoot = "https://n1.nylas.com";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue