refacto: tentative de refacto

This commit is contained in:
Julien Froidefond
2025-02-17 16:37:48 +01:00
parent 7ee99ac31a
commit ba725bb1a3
28 changed files with 195 additions and 170 deletions

View File

@@ -2,16 +2,13 @@
import { AuthError } from "@/types/auth";
interface AuthUser {
id: string;
email: string;
roles: string[];
authenticated: boolean;
}
class AuthService {
private static instance: AuthService;
private constructor() {}
// Constructeur privé pour le pattern Singleton
private constructor() {
// Pas d'initialisation nécessaire
}
public static getInstance(): AuthService {
if (!AuthService.instance) {