fix(auth): Use new endpoints for Gmail auth

This commit is contained in:
Ben Gotow 2016-11-23 14:38:00 -08:00
parent f2c902d425
commit 6ac3637420
2 changed files with 3 additions and 3 deletions

View file

@ -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);
}

View file

@ -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.