You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
362 B

  1. import { AuthRepository } from '~/domain/models/auth/authRepository'
  2. export class AuthApplicationService {
  3. constructor(
  4. private readonly repository: AuthRepository
  5. ) {}
  6. public async login(username: string, password: string) {
  7. await this.repository.login(username, password)
  8. }
  9. public async logout() {
  10. await this.repository.logout()
  11. }
  12. }