There was an error while loading. Please reload this page.
1 parent 8475e43 commit e5b2a5bCopy full SHA for e5b2a5b
src/examples/server/simpleStreamableHttp.ts
@@ -311,8 +311,8 @@ if (useOAuth) {
311
const data = await response.json();
312
313
if (strictOAuth) {
314
- throw new Error('Resource Indicator (RFC8707) missing');
315
if (!data.aud) {
+ throw new Error(`Resource Indicator (RFC8707) missing`);
316
}
317
if (data.aud !== mcpServerUrl.href) {
318
throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.aud}`);
0 commit comments