From c49425805318e6cd790585726692bffeae50dddf Mon Sep 17 00:00:00 2001 From: Brandon Satrom Date: Thu, 9 Mar 2017 15:52:13 -0600 Subject: [PATCH] bug:set user token correctly --- lib/common/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/api.js b/lib/common/api.js index 9807e35..6288760 100755 --- a/lib/common/api.js +++ b/lib/common/api.js @@ -31,7 +31,7 @@ if (userConfig.data && userConfig.data.api_uri) { protocol: 'https', hostname: 'api.xervo.io', version: 'v2', - token: null + token: userConfig.data ? userConfig.data.apiKey : null }) }