@brewww/authentication-service
Version:
Authenticator service for Brew projects.
18 lines (17 loc) • 979 B
TypeScript
import { TemplateService } from "../template/template.service";
import { ConfigService } from "@nestjs/config";
import { ResetPasswordCreatedEvent, OtpEmailCreatedEvent, OtpSmsCreatedEvent } from "./dto";
import { NotificationService } from "@brewww/nestjs-notification-module/";
export declare class AuthNotificationService {
private readonly templateService;
private readonly notificationService;
private readonly configService;
private readonly defaultLocale;
constructor(templateService: TemplateService, notificationService: NotificationService, configService: ConfigService);
onOtpEmailCreatedAsync(otpEmailCreatedEvent: OtpEmailCreatedEvent): Promise<void>;
onOtpSmsCreatedAsync(otpSmsCreatedEvent: OtpSmsCreatedEvent): Promise<void>;
onResetPasswordEmailCreatedAsync(resetPasswordCreatedEvent: ResetPasswordCreatedEvent): Promise<void>;
private getOtpEmailByAuthAction;
private getOtpSmsByAuthAction;
private sendEmailAsync;
}