From 5ee7e91f2f2e6122b9194badf9f5612e5b25b90c Mon Sep 17 00:00:00 2001 From: Jip Sterk <17934897+JipSterk@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:55:09 +0200 Subject: [PATCH] update options --- packages/core/src/providers/email.ts | 6 +++--- packages/core/src/providers/nodemailer.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/core/src/providers/email.ts b/packages/core/src/providers/email.ts index 0507a69674..6690cf2d1e 100644 --- a/packages/core/src/providers/email.ts +++ b/packages/core/src/providers/email.ts @@ -30,8 +30,8 @@ export interface EmailConfig extends CommonProviderOptions { id: string type: EmailProviderType name: string - from: string - maxAge: number + from?: string + maxAge?: number sendVerificationRequest: (params: { identifier: string url: string @@ -49,7 +49,7 @@ export interface EmailConfig extends CommonProviderOptions { server?: NodemailerConfig["server"] generateVerificationToken?: () => Awaitable normalizeIdentifier?: (identifier: string) => string - options: EmailUserConfig + options?: EmailUserConfig } export type EmailUserConfig = Omit, "options" | "type"> diff --git a/packages/core/src/providers/nodemailer.ts b/packages/core/src/providers/nodemailer.ts index 9329211526..8568ef1cd8 100644 --- a/packages/core/src/providers/nodemailer.ts +++ b/packages/core/src/providers/nodemailer.ts @@ -1,13 +1,13 @@ import { createTransport } from "nodemailer" -import { html, text } from "../lib/utils/email.js" import { AuthError } from "../errors.js" +import { html, text } from "../lib/utils/email.js" import type { Transport, TransportOptions } from "nodemailer" import * as JSONTransport from "nodemailer/lib/json-transport/index.js" import * as SendmailTransport from "nodemailer/lib/sendmail-transport/index.js" import * as SESTransport from "nodemailer/lib/ses-transport/index.js" -import * as SMTPTransport from "nodemailer/lib/smtp-transport/index.js" import * as SMTPPool from "nodemailer/lib/smtp-pool/index.js" +import * as SMTPTransport from "nodemailer/lib/smtp-transport/index.js" import * as StreamTransport from "nodemailer/lib/stream-transport/index.js" import type { Awaitable, Theme } from "../types.js" import type { EmailConfig } from "./email.js" @@ -40,7 +40,7 @@ export interface NodemailerConfig extends EmailConfig { theme: Theme request: Request }) => Awaitable - options: NodemailerUserConfig + options?: NodemailerUserConfig } export type NodemailerUserConfig = Omit<