import type { IdentitySessionPort } from '../ports/IdentitySessionPort';

export class LogoutUseCase {
  private readonly sessionPort: IdentitySessionPort;

  constructor(sessionPort: IdentitySessionPort) {
    this.sessionPort = sessionPort;
  }

  async execute(): Promise<void> {
    await this.sessionPort.clearSession();
  }
}