gitfoss-fork-fork | 15bc29f6ed6f7635f8ab7c065e71532e20b7ad29 | app/services/auth/isExistingUsername.ts ∙ GitFOSS
.ts
TypeScript
(application/typescript)
// 1st-party
import type { ServiceMethodFactory } from "@ethicdevs/react-monolith";
// app
import type { AuthServiceDeps } from "./types";

const makeIsExistingUsername: ServiceMethodFactory<
  AuthServiceDeps,
  [string],
  boolean
> = (_) => {
  return (username) => {
    return username === "username";
  };
};

export default makeIsExistingUsername;