William Nemenchainitial commit
86fb32e9/11/2022, 1:13:39 AM
.ts
TypeScript
(application/typescript)
export interface AuthServiceAPI extends ServiceApiContract {
  compareUserPasswordHashes: (a: string, b: string) => boolean;
  isExistingUsername: (username: string) => boolean;
  isExistingUserUid: (userUid: string) => boolean;
  findUserByUsername: (username: string) => void;
  findUserByUid: (userUid: string) => void;
  sendUserEmailAddressV8nEmail: (args: unknown[]) => void;
  validateUserEmailAddress: (userUid: string, emailAddress: string) => void;
}

export interface AuthServiceDeps extends ServiceDependencies {
  request: FastifyRequest;
}