public static PasswordlessLoginBuilder AddSmtpEmail(this PasswordlessLoginBuilder builder, IConfiguration configuration) { var smtpOptions = new SmtpOptions(); configuration.Bind(smtpOptions); return(builder.AddSmtpEmail(smtpOptions)); }
public static PasswordlessLoginBuilder AddSmtpEmail(this PasswordlessLoginBuilder builder, Action <SmtpOptions> smtpOptionsBuilder) { var smtpOptions = new SmtpOptions(); smtpOptionsBuilder?.Invoke(smtpOptions); return(builder.AddSmtpEmail(smtpOptions)); }