Sprint 5. Etapa 1.
Some checks failed
/ Deploy to Cloudflare Pages (push) Has been cancelled

This commit is contained in:
2026-06-19 15:31:03 -03:00
parent 84daf82e65
commit a2763ab755
13 changed files with 612 additions and 80 deletions

View File

@@ -20,6 +20,10 @@ export class SupabaseAuthService implements AuthService {
if (error) throw error
}
// Auditoría Sprint 5 Etapa 1: este getSession() NO se reemplaza por getSessionSafe()
// porque necesita el objeto session en sí (no es una barrera descartable) y getCurrentUser()
// no tiene ningún caller en la app hoy (AuthContext usa onAuthStateChange). Cambios de auth
// están fuera de scope de esta etapa — se documenta la decisión, no se toca el comportamiento.
async getCurrentUser(): Promise<AuthUser | null> {
const { data: { session } } = await supabase.auth.getSession()
if (!session?.user) return null