chore: refine oauth token expiry handling

Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-12-13 14:33:49 +00:00
parent 2ab60bf7a9
commit b98180c870

View File

@@ -376,9 +376,6 @@ export class MCPHubOAuthProvider implements OAuthClientProvider {
const parsed = Date.parse(accessTokenExpiresAt);
return Number.isNaN(parsed) ? undefined : parsed;
}
if (accessTokenExpiresAt instanceof Date) {
return accessTokenExpiresAt.getTime();
}
return undefined;
}