fix: pass missing old headers on refresh

This commit is contained in:
Michal Szczepanski 2023-10-11 07:03:54 +02:00
parent 051038d03e
commit 65fd77412e

@ -96,7 +96,7 @@ export class FetchService {
}, },
(res) => { (res) => {
if (res.ok && refreshParams.successCallback) { if (res.ok && refreshParams.successCallback) {
params.headers = refreshParams.successCallback(res); params.headers = refreshParams.successCallback(res, params.headers);
} }
resolve(); resolve();
}, },