import { sendEmail } from "../utils/sendEmail.utils";
// config file for developer or user that can easily use the following data in their project / program
export type AuthConfig = {
  hashAlgorithm?: "crypto" | "bcrypt";
  generateSecureKey?: () => string;
  checkUserExist?: (email: string) => Promise<boolean>;
  createUser?: (userData: any) => Promise<any>;
  createAuthRecord?: (authData: any) => Promise<any>;
  getUserByEmail?: (email: string) => Promise<any>;
  getAuthRecord?: (id: string) => Promise<any>;
  sendEmail?: typeof sendEmail; // Use email sending function
};
