Skip to content

Commit

Permalink
expiration should really be checked correctly :(
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianSW committed Dec 10, 2023
1 parent 5a09126 commit f9e8672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/internal/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class CFToolsAuthorizationProvider implements AuthorizationProvider {
}

private hasToken(): boolean {
return !!this.token && !!this.expired && this.expired.getTime() <= new Date().getTime();
return !!this.token && this.expired !== undefined && this.expired.getTime() >= new Date().getTime();
}

private async fetchToken(client: HttpClient): Promise<string> {
Expand Down

0 comments on commit f9e8672

Please # to comment.