Skip to content

Commit

Permalink
fix(ts): use correct type for nodemailer config in the EmailProvider (
Browse files Browse the repository at this point in the history
#4097)

Co-authored-by: Thang Vu <31528554+ThangHuuVu@users.noreply.github.com>
  • Loading branch information
nkg168 and ThangHuuVu committed Jul 12, 2022
1 parent c2a9ab3 commit 1b91282
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/next-auth/src/providers/email.ts
@@ -1,7 +1,7 @@
import { createTransport } from "nodemailer"

import type { CommonProviderOptions } from "."
import type { Options as SMTPConnectionOptions } from "nodemailer/lib/smtp-connection"
import type { Options as SMTPTransportOptions } from "nodemailer/lib/smtp-transport"
import type { Awaitable } from ".."
import type { Theme } from "../core/types"

Expand All @@ -17,7 +17,7 @@ export interface SendVerificationRequestParams {
export interface EmailConfig extends CommonProviderOptions {
type: "email"
// TODO: Make use of https://www.typescriptlang.org/docs/handbook/2/template-literal-types.html
server: string | SMTPConnectionOptions
server: string | SMTPTransportOptions
/** @default "NextAuth <no-reply@example.com>" */
from?: string
/**
Expand Down

0 comments on commit 1b91282

Please sign in to comment.