Skip to content

Commit f497c68

Browse files
committed
chore: add changeset
1 parent 3a87ffa commit f497c68

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@modelcontextprotocol/client": patch
3+
---
4+
5+
Fix OAuth resource metadata URL persistence across browser redirects
6+
7+
Added two optional methods to `OAuthClientProvider`:
8+
- `saveResourceMetadataUrl(url: URL)`: Saves the URL before redirect
9+
- `resourceMetadataUrl()`: Loads the saved URL after redirect
10+
11+
This fixes token exchange failures in browser OAuth flows where the resource metadata URL discovered from the WWW-Authenticate header was lost during redirects.

0 commit comments

Comments
 (0)