File size: 525 Bytes
c605dd5
 
 
 
 
430f98c
 
 
c605dd5
430f98c
 
c605dd5
430f98c
 
c605dd5
430f98c
 
c605dd5
430f98c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""
Dedalys Backend — Clients Supabase
Initialisation des clients pour l'API et l'admin.
"""

from supabase import create_client, Client
from app.core.config import settings

# Client avec anon key — pour les opérations authentifiées utilisateur
supabase: Client = create_client(
    settings.SUPABASE_URL,
    settings.SUPABASE_ANON_KEY
)

# Client avec service_role key — pour les opérations admin (bypass RLS)
supabase_admin: Client = create_client(
    settings.SUPABASE_URL,
    settings.SUPABASE_SERVICE_KEY
)