Commit 04df856
Jah-yee
fix: preserve existing refresh_token when server omits it in refresh response
Per RFC 6749 Section 6, the authorization server MAY issue a new
refresh token in the refresh response. If omitted, the client must
preserve the existing one.
This fix prevents token refresh failures after the first refresh
when using OAuth providers that don't return refresh tokens in
responses (e.g., Google, Auth0 without rotation, Okta in persistent
token mode).
Fixes #22701 parent 62eb08e commit 04df856
1 file changed
+11
-0
lines changed| 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