summaryrefslogtreecommitdiff
path: root/packages/core/src/mcp/oauth-utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/core/src/mcp/oauth-utils.ts')
-rw-r--r--packages/core/src/mcp/oauth-utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/core/src/mcp/oauth-utils.ts b/packages/core/src/mcp/oauth-utils.ts
index 6dad17c8..64fd68be 100644
--- a/packages/core/src/mcp/oauth-utils.ts
+++ b/packages/core/src/mcp/oauth-utils.ts
@@ -198,8 +198,8 @@ export class OAuthUtils {
* @returns The resource metadata URI if found
*/
static parseWWWAuthenticateHeader(header: string): string | null {
- // Parse Bearer realm and resource_metadata_uri
- const match = header.match(/resource_metadata_uri="([^"]+)"/);
+ // Parse Bearer realm and resource_metadata
+ const match = header.match(/resource_metadata="([^"]+)"/);
if (match) {
return match[1];
}