Update simpleStreamableHttp.ts
This commit is contained in:
parent
bf72f87788
commit
4a88cac4c6
1 changed files with 2 additions and 2 deletions
|
|
@ -314,8 +314,8 @@ if (useOAuth) {
|
|||
if (!data.resource) {
|
||||
throw new Error('Resource Indicator (RFC8707) missing');
|
||||
}
|
||||
if (data.resource !== expectedOAuthResource) {
|
||||
throw new Error(`Expected resource indicator ${expectedOAuthResource}, got: ${data.resource}`);
|
||||
if (data.resource !== mcpServerUrl) {
|
||||
throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.resource}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue