From 54dbdd17d2be94e58888163cb7d3cf4b7e5b91e8 Mon Sep 17 00:00:00 2001 From: BlueAndi Date: Tue, 27 Feb 2024 19:17:54 +0100 Subject: [PATCH] Fixed to store token in client context. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 963e2bc..5c64e29 100644 --- a/index.js +++ b/index.js @@ -213,7 +213,7 @@ niuCloudConnector.Client.prototype.createSessionToken = function(options) { return Promise.reject(_this._error("Token is empty in response.", funcName)); } - _this._token = result.body.data.token; + _this._token = result.body.data.token.access_token; return Promise.resolve({ client: _this,