Merge commit 'f518eb7a1394ee29b825e551e6557dd71cd95a28'

This commit is contained in:
2026-06-30 01:24:44 +02:00
14 changed files with 323 additions and 29 deletions
+3
View File
@@ -17,6 +17,9 @@ async function verifyToken(token) {
return { id: p.sub, email: p.email || '', app_metadata: p.app_metadata || {} };
} catch { return null; }
}
// Fallback (kein JWT_SECRET): Remote-Prüfung gegen GoTrue — nur wenn ein
// Supabase-Auth-Client existiert (DB-loser Betrieb hat keinen).
if (!supabaseAuth) return null;
const { data, error } = await supabaseAuth.auth.getUser(token);
if (error || !data?.user) return null;
return data.user;