const KEY = "didactopus-auth";
export function loadAuth() { try { return JSON.parse(localStorage.getItem(KEY) || "null"); } catch { return null; } }
export function saveAuth(data) { localStorage.setItem(KEY, JSON.stringify(data)); }
export function clearAuth() { localStorage.removeItem(KEY); }
