Skip to content

Commit

Permalink
Merge pull request #69 from StackStorm/fix/token-expiry-event
Browse files Browse the repository at this point in the history
Emit st2 token expiry event 10s earlier
  • Loading branch information
armab authored Jun 22, 2019
2 parents 46562a2 + 3a36fe3 commit 9f3a90d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ module.exports = function (opts) {
}
this._expiryTimeout = setTimeout(function () {
this.emit('expiry', token);
}.bind(this), new Date(token.expiry) - new Date());
}.bind(this), new Date(token.expiry) - new Date() - 10 * 1000);
return token;
}.bind(this));
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "st2client",
"version": "1.1.2",
"version": "1.1.3",
"description": "StackStorm ST2 API library",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 9f3a90d

Please sign in to comment.