ekyc

Electronic KYC process with uploading ID document using OAuth 2.1 (experimental)
Log | Files | Refs | README | LICENSE

factory.ts (479B)


      1 import { SmtpAuthEmailChallengeMailerAdapter } from "#infrastructure/smtp/auth.ts";
      2 
      3 export type SmtpDependencies = {
      4   environment: {
      5     SMTP_HOST: string;
      6     SMTP_PORT: number;
      7     SMTP_USER?: string;
      8     SMTP_PASS?: string;
      9     SMTP_TLS: boolean;
     10     SMTP_FROM: string;
     11   };
     12 };
     13 
     14 export function createSmtpMailer(dependencies: SmtpDependencies) {
     15   return {
     16     authEmailChallengeMailer: new SmtpAuthEmailChallengeMailerAdapter(
     17       dependencies.environment,
     18     ),
     19   };
     20 }