export type AuthenticationRequest = {
  username: string
  password: string
}

export type AuthenticationResponseBo = {
  token: string
  refreshToken: string,
  expirationDurationInSec:number,
  userConnectionHistoryId: number,
  userId: number,
}

export type UserConnectionHistoryDto = {
  id: number; 
  createdAt?: string; 
  updatedAt?: string; 
  loginDateTime: string;
  logoutDateTime: string | null; 
  duration: string; 
}

export type OtpResponseDTO = {
  attempts: number;
  generationDate: string; // LocalDateTime sera sérialisé en string
  isUsed: boolean;
}
