auto-claude: subtask-3-4 - Add JSDoc to supabaseClient.ts
This commit is contained in:
@@ -1,6 +1,30 @@
|
||||
/**
|
||||
* Supabase Client Configuration
|
||||
* Zentrale Konfiguration für die Supabase-Verbindung
|
||||
*/
|
||||
|
||||
import { createClient } from '@supabase/supabase-js';
|
||||
|
||||
const supabaseUrl = 'https://mxadgucxhmstlzsbgmoz.supabase.co';
|
||||
const supabaseAnonKey = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6Im14YWRndWN4aG1zdGx6c2JnbW96Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MzkwMDgwNjIsImV4cCI6MjA1NDU4NDA2Mn0.MmFqEm7OfwzOlSegLYl9YWLCmIp8YajzK3Aozubn66Q';
|
||||
|
||||
/**
|
||||
* Supabase Client Instanz
|
||||
*
|
||||
* Vorkonfigurierter Supabase-Client für den Zugriff auf die Datenbank.
|
||||
* Verwendet die anonyme (anon) Rolle für öffentliche Zugriffe.
|
||||
*
|
||||
* @example
|
||||
* // Daten aus einer Tabelle abrufen
|
||||
* const { data, error } = await supabase
|
||||
* .from('table_name')
|
||||
* .select('*');
|
||||
*
|
||||
* @example
|
||||
* // Authentifizierung
|
||||
* const { user, error } = await supabase.auth.signIn({
|
||||
* email: 'user@example.com',
|
||||
* password: 'password'
|
||||
* });
|
||||
*/
|
||||
export const supabase = createClient(supabaseUrl, supabaseAnonKey);
|
||||
Reference in New Issue
Block a user