Commit 0c207d2
OpenClaw AI
fix(oauth): preserve existing refresh_token when server omits it
Per RFC 6749 Section 6, the authorization server MAY issue a new
refresh token in the refresh response. If the server does not issue
a new refresh token, the client must preserve the existing one.
This fix preserves the existing refresh_token when the OAuth server's
refresh response omits it, which is common for providers like Google,
Auth0, and Okta.
Fixes #22701 parent 62eb08e commit 0c207d2
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