mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-22 00:06:06 +08:00
fix(auth): Use new endpoints for Gmail auth
This commit is contained in:
parent
f2c902d425
commit
6ac3637420
|
@ -41,8 +41,8 @@ export function makeGmailOAuthRequest(sessionKey, callback) {
|
|||
sendImmediately: true,
|
||||
},
|
||||
success: (json) => {
|
||||
if (json && json.data) {
|
||||
callback(null, JSON.parse(json.data));
|
||||
if (json) {
|
||||
callback(null, JSON.parse(json));
|
||||
} else {
|
||||
callback(null, null);
|
||||
}
|
||||
|
|
|
@ -62,7 +62,7 @@ class NylasAPI
|
|||
if env is 'local'
|
||||
@RemoteAPIRoot = 'http://localhost:5100'
|
||||
else
|
||||
@RemoteAPIRoot = 'https://n1-prod.us-east-1.elasticbeanstalk.com'
|
||||
@RemoteAPIRoot = 'https://n1.nylas.com'
|
||||
|
||||
# Delegates to node's request object.
|
||||
# On success, it will call the passed in success callback with options.
|
||||
|
|
Loading…
Reference in a new issue