Interface ForgotPasswordHandlerArgs

interface ForgotPasswordHandlerArgs {
    emailSender: EmailSender;
    forgotPasswordStore: ForgotPasswordStore;
    passwordStore: PasswordStore;
    resetRoute: InteractionRoute<never>;
    templateEngine: TemplateEngine<{
        resetLink: string;
    }>;
}

Properties

emailSender: EmailSender

Sender to send the actual email.

forgotPasswordStore: ForgotPasswordStore

Store containing the forgot password records.

passwordStore: PasswordStore

Store containing the password login information.

resetRoute: InteractionRoute<never>

Route used to generate the reset link for the user.

templateEngine: TemplateEngine<{
    resetLink: string;
}>

Template engine that will be used to generate the email body.