fix(frontend): preserve refresh token during token rotation to prevent background session expiration
All checks were successful
Automated Container Build / build-and-push (push) Successful in 44s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 44s
This commit is contained in:
parent
88260ee78e
commit
322685e3a3
1 changed files with 1 additions and 1 deletions
|
|
@ -106,7 +106,7 @@ class ApiClient {
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
this.setTokens(data.access_token, data.refresh_token);
|
this.setTokens(data.access_token, data.refresh_token || this.refreshToken!);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue