Skip to content

Commit

Permalink
Merge pull request #22 from girder/expiration
Browse files Browse the repository at this point in the history
Fix a bug in token expiration checking
  • Loading branch information
brianhelba committed Dec 28, 2020
2 parents ea3c148 + 66276ec commit 05777a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oauth-facade.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ export default class OauthFacade {
// Token has a known expiration
const expirationDate = new Date((token.issuedAt + token.expiresIn) * 1000);
const currentDate = new Date();
if (expirationDate > currentDate) {
if (expirationDate <= currentDate) {
return true;
}
}
Expand Down

0 comments on commit 05777a1

Please sign in to comment.