import { makeService } from "@ethicdevs/react-monolith";
import type { AuthServiceAPI, AuthServiceDeps } from "./types";
import { default as makeCreateUser } from "./createUser";
import { default as makeIsExistingUsername } from "./isExistingUsername";
import { default as makeIsExistingEmailAddress } from "./isExistingEmailAddress";
import { default as makeIsUserLoginAllowed } from "./isUserLoginAllowed";
export const makeAuthService = makeService<AuthServiceAPI, AuthServiceDeps>({
createUser: makeCreateUser,
isExistingUsername: makeIsExistingUsername,
isExistingEmailAddress: makeIsExistingEmailAddress,
isUserLoginAllowed: makeIsUserLoginAllowed,
});