diff --git a/lib/auth.js b/lib/auth.js index c8575db..3be8012 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -39,7 +39,7 @@ module.exports = new Model({ console.info('Already had a bearer token', this._bearerToken); return Promise.resolve(this._bearerToken); } else { - var url = config.host + '/oauth/token'; + var url = config.oauthHost + '/oauth/token'; var data = { 'grant_type': 'password',