fix(auth): send Nous refresh token via header

This commit is contained in:
Shannon Sands 2026-05-08 10:24:34 +10:00 committed by Teknium
parent 486b14b423
commit b32461f6e8
2 changed files with 40 additions and 2 deletions

View file

@ -3117,10 +3117,10 @@ def _refresh_access_token(
) -> Dict[str, Any]:
response = client.post(
f"{portal_base_url}/api/oauth/token",
headers={"x-nous-refresh-token": refresh_token},
data={
"grant_type": "refresh_token",
"client_id": client_id,
"refresh_token": refresh_token,
},
)