From 3a2706fb219db01676ce7bf3f6127e7e7480d7b2 Mon Sep 17 00:00:00 2001 From: Simone Duca Date: Mon, 4 Apr 2016 12:21:51 +0100 Subject: [PATCH] Use oauth host. --- lib/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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',