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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user