// utils/checkSession.ts export async function checkSession(): Promise { try { // Beispiel: prüfe ob ein erwartetes globales Fenster-Objekt noch existiert const expectedGlobalVar = "win_kueID"; // oder "win_deviceName", je nach System if (typeof window === "undefined") return false; return window[expectedGlobalVar] !== undefined; } catch (error) { return false; } }