This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user