fix simpleStreamableHttp.ts
This commit is contained in:
parent
8475e43f15
commit
e5b2a5b880
1 changed files with 1 additions and 1 deletions
|
|
@ -311,8 +311,8 @@ if (useOAuth) {
|
|||
const data = await response.json();
|
||||
|
||||
if (strictOAuth) {
|
||||
throw new Error('Resource Indicator (RFC8707) missing');
|
||||
if (!data.aud) {
|
||||
throw new Error(`Resource Indicator (RFC8707) missing`);
|
||||
}
|
||||
if (data.aud !== mcpServerUrl.href) {
|
||||
throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.aud}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue