mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 05:52:45 +00:00
fix(oauth): harden refresh token refresh-response validation
This commit is contained in:
@@ -218,6 +218,7 @@ export async function refreshChutesTokens(params: {
|
||||
return {
|
||||
...params.credential,
|
||||
access,
|
||||
// RFC 6749 section 6: new refresh token is optional; if present, replace old.
|
||||
refresh: newRefresh || refreshToken,
|
||||
expires: coerceExpiresAt(expiresIn, now),
|
||||
clientId,
|
||||
|
||||
Reference in New Issue
Block a user