Skip to content

Commit 5e7c581

Browse files
authored
Merge pull request #237 from ankitabhopatkar13/patch-1
Fixed condition to check expired token for exec auth
2 parents 4a5b84d + 8993516 commit 5e7c581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exec_auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class ExecAuth implements Authenticator {
2929
const cachedToken = this.tokenCache[user.name];
3030
if (cachedToken) {
3131
const date = Date.parse(cachedToken.status.expirationTimestamp);
32-
if (date < Date.now()) {
32+
if (date > Date.now()) {
3333
return `Bearer ${cachedToken.status.token}`;
3434
}
3535
this.tokenCache[user.name] = null;

0 commit comments

Comments
 (0)