Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Commit

Permalink
revert(tokens): dont reject expired tokens, again
Browse files Browse the repository at this point in the history
We ran into some operational issues when deploying this, backing it out
so that we can get the rest of train-53 out the door.
  • Loading branch information
rfk committed Jan 11, 2016
1 parent fef58b6 commit e8b563e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/token.js
Expand Up @@ -24,7 +24,7 @@ exports.verify = function verify(token) {
created_at: token.createdAt,
expires_at: token.expiresAt
});
throw AppError.expiredToken(token.expiresAt);
//throw AppError.expiredToken(token.expiresAt);
} else if ((+token.createdAt + TWENTY_FOUR_HOURS) < Date.now()) {
// Log a warning if reliers are using access tokens that are more
// than 24 hours old. Eventually we will shorten the expiry time
Expand Down
2 changes: 1 addition & 1 deletion test/api.js
Expand Up @@ -1814,7 +1814,7 @@ describe('/v1', function() {
});
});

it('should reject expired tokens', function() {
it.skip('should reject expired tokens', function() {
this.slow(2200);
return newToken({
ttl: 1
Expand Down

0 comments on commit e8b563e

Please sign in to comment.