Integrate full instagram oauth

This commit is contained in:
2025-11-09 11:59:36 +01:00
parent d6ba7c595a
commit 8ca2bc9909
6 changed files with 79 additions and 73 deletions

View File

@@ -24,12 +24,18 @@ export class Requester {
headers: headers,
body: body
})
.then(response => response.json())
.then(async response => {
if (!response.ok) {
throw new Error(`HTTP ${response.status} ${response.statusText} : ${await response.text()}`);
}
return response.json()
})
.then(data => {
return data;
})
.catch(error => {
Logger.error(`Unable to fetch`, error);
throw error;
});
}
}