Commit fea660f
committed
fix: preserve existing refresh_token when server omits it in refresh response
Per RFC 6749 Section 6, issuing a new refresh token in the refresh
response is optional. Many OAuth providers omit it by default (Google,
Auth0 without rotation enabled, Okta in persistent token mode).
This fix checks if the refresh response omits refresh_token and preserves
the existing one to prevent auth failures after the first refresh.
Fixes modelcontextprotocol#23041 parent 5388bea commit fea660f
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
461 | 472 | | |
462 | 473 | | |
463 | 474 | | |
| |||
0 commit comments