Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

fix: add missing closing brace in deleteIGCache

valzor615504b6e259
diff --git a/backend/lib/cache.js b/backend/lib/cache.js
index 21739af..7be4b4e 100644
--- a/backend/lib/cache.js
+++ b/backend/lib/cache.js
@@ -30,6 +30,7 @@ export async function setIGCache(redis, userId, accountId, data) {
export async function deleteIGCache(redis, userId, accountId) {
if (!redis) return;
try { await redis.del(`ig:${userId}:${accountId}`); } catch { /* non-fatal */ }
+}
// ---- OAuth state via HMAC (no Redis required) --------------------------------
// State format: base64url(userId:timestamp) . base64url(HMAC-SHA256 signature)