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