fix(coding-agent/mcp): added type assertion to OAuth metadata response for type safety

- Added type assertion to OAuth metadata response to ensure proper type safety.
This commit is contained in:
can1357
2026-02-12 12:09:48 +01:00
parent be89a26cb6
commit c518e24678
@@ -235,7 +235,7 @@ export async function discoverOAuthEndpoints(serverUrl: string): Promise<OAuthEn
});
if (response.ok) {
const metadata = await response.json();
const metadata = (await response.json()) as Record<string, any>;
// Check for standard OAuth discovery format
if (metadata.authorization_endpoint && metadata.token_endpoint) {