streamflix-api / src /shared /modules /email /email.config.ts
Akshar2325
feat(auth): implement multi-step user registration flow
db3d93b
Raw
History Blame
687 Bytes
import { ConfigService } from '@nestjs/config';
export class EmailConfig {
apiKey: string;
otpEmail: string;
otpTemplateId: number;
welcomeEmail: string;
welcomeTemplateId: number;
constructor(configService: ConfigService) {
this.apiKey = configService.get<string>('BREVO_API_KEY') || '';
this.otpEmail = configService.get<string>('BREVO_OTP_EMAIL') || '';
this.otpTemplateId = parseInt(
configService.get<string>('BREVO_OTP_TEMPLATE_ID') || '0',
);
this.welcomeEmail = configService.get<string>('BREVO_WELCOME_EMAIL') || '';
this.welcomeTemplateId = parseInt(
configService.get<string>('BREVO_WELCOME_TEMPLATE_ID') || '0',
);
}
}