Files
trouvetonprofile/src/app/application/authentification/get-current-user.usecase.ts
styve Lioumba b90e78e1b7
All checks were successful
Build Check / build (push) Successful in 3m8s
Build Check / build (pull_request) Successful in 3m19s
refacto : restructuration du projet
2025-12-23 09:06:41 +01:00

11 lines
301 B
TypeScript

import { AuthRepository } from '@app/domain/authentification/auth.repository';
import { User } from '@app/domain/users/user.model';
export class GetCurrentUserUseCase {
constructor(private readonly authRepo: AuthRepository) {}
execute(): User | undefined {
return this.authRepo.get();
}
}