mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
chore: refine oauth token expiry handling
Co-authored-by: samanhappy <2755122+samanhappy@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user