Skip to content

Commit

Permalink
Merge pull request #8 from BlueAndi/development
Browse files Browse the repository at this point in the history
Fixed to store token in client context.
  • Loading branch information
BlueAndi authored Feb 27, 2024
2 parents 4d1b536 + 54dbdd1 commit 3d356c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3d356c8

Please sign in to comment.