- Middleware SSR pour rafraîchir les sessions auth - Route callback /api/auth/callback (échange code PKCE + création contributor) - LoginModal branché sur signInWithPassword - SignupModal + page /inscription/[token] protégée par SIGNUP_SECRET_TOKEN - AuthSection : écoute onAuthStateChange, affiche nom + déconnexion - Entité domaine Contributor (id, reputation) avec tests TDD - Migration : rename user_profiles → contributors, suppression colonne name - Tests colocated avec le code (plus de dossier __tests__/) - Composant SwitchLink extrait dans components/ui
39 lines
866 B
SQL
39 lines
866 B
SQL
-- Seed minimal pour le développement local
|
|
-- Le contenu est géré par le script d'import : npm run import:content
|
|
|
|
-- Utilisateur auth de test (nécessaire car auth.users n'est pas accessible via le client Supabase)
|
|
INSERT INTO auth.users (
|
|
id,
|
|
instance_id,
|
|
aud,
|
|
role,
|
|
email,
|
|
encrypted_password,
|
|
email_confirmed_at,
|
|
created_at,
|
|
updated_at,
|
|
raw_app_meta_data,
|
|
raw_user_meta_data,
|
|
is_super_admin,
|
|
confirmation_token,
|
|
email_change,
|
|
email_change_token_new,
|
|
recovery_token
|
|
) VALUES (
|
|
'00000000-0000-0000-0000-000000000001',
|
|
'00000000-0000-0000-0000-000000000000',
|
|
'authenticated',
|
|
'authenticated',
|
|
'jalil@arfaoui.net',
|
|
'$2b$10$Ecf7RaaBNpLNwiIMYP2Ow.GD0iIQbOM/udZerrOa56WG05SwqlmKa',
|
|
NOW(),
|
|
NOW(),
|
|
NOW(),
|
|
'{"provider":"email","providers":["email"]}',
|
|
'{"name":"Jalil Arfaoui"}',
|
|
false,
|
|
'',
|
|
'',
|
|
'',
|
|
''
|
|
);
|