Skip to content

Commit 8993516

Browse files
Fixed condition to check expired token for exec auth
Fixes #228 It also fixes the issue where if the token is valid it was regenerating every time.
1 parent 4a5b84d commit 8993516

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)