UNPKG

ts-clean-core

Version:
10 lines (9 loc) 346 B
import { AuthRepository } from "../repositories/Auth.repository"; import Encrypts from "../encrypts"; import { UserCredentials } from "./io/userCredentials"; import UserToken from "./io/userToken"; export interface Authorizes { encryptor: Encrypts; authRepository: AuthRepository; login(credentials: UserCredentials): Promise<UserToken>; }