Front: Fix Refresh on authentication

This commit is contained in:
Arthi-chaud
2023-01-04 14:13:37 +00:00
parent 5b0871b5cc
commit f53fabb20b
4 changed files with 3868 additions and 167 deletions
+1
View File
@@ -34,6 +34,7 @@ export default class API {
method: params.method ?? 'GET'
});
const body = await response.text();
try {
const jsonResponse = body.length != 0 ? JSON.parse(body) : {};
if (!response.ok) {