diff --git a/src/internal/auth.ts b/src/internal/auth.ts index 975656f..b3fa03c 100644 --- a/src/internal/auth.ts +++ b/src/internal/auth.ts @@ -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 {