School Girl Sashimi

This commit is contained in:
Samidy 2026-04-17 02:21:19 +03:00
parent 5d8ac7a7e2
commit 4f57e42d26

View file

@ -1340,12 +1340,16 @@ class HiFiClient {
force: unauthorized,
});
res = await fetch(final, {
headers: {
authorization: `Bearer ${token}`,
},
signal,
});
try {
res = await fetch(final, {
headers: {
authorization: `Bearer ${token}`,
},
signal,
});
} catch (err: unknown) {
throw new ResponseError(0, err instanceof Error ? err.message : String(err));
}
if (previousResponse && unauthorized && res.status === 401) {
throw new ResponseError(401, 'Unauthorized: Invalid or expired token');