Skip to content

Commit

Permalink
Fix a bug in token expiration checking
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhelba committed Dec 28, 2020
1 parent 0235461 commit 66276ec
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 66276ec

Please sign in to comment.