Skip to content

Commit e5b2a5b

Browse files
committed
fix simpleStreamableHttp.ts
1 parent 8475e43 commit e5b2a5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/examples/server/simpleStreamableHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ if (useOAuth) {
311311
const data = await response.json();
312312

313313
if (strictOAuth) {
314-
throw new Error('Resource Indicator (RFC8707) missing');
315314
if (!data.aud) {
315+
throw new Error(`Resource Indicator (RFC8707) missing`);
316316
}
317317
if (data.aud !== mcpServerUrl.href) {
318318
throw new Error(`Expected resource indicator ${mcpServerUrl}, got: ${data.aud}`);

0 commit comments

Comments
 (0)