コンテンツへスキップ
NextAuth.js v4からの移行?こちらを ご確認ください。.

providers/nodemailer

NodemailerConfig

すべてのProviderTypeで共有

継承元

プロパティ

apiKey?

optional apiKey: string;

HTTP ベースのメールプロバイダーで使用されます。

継承元

EmailConfig.apiKey

from?

optional from: string;
継承元

EmailConfig.from

generateVerificationToken()?

optional generateVerificationToken: () => Awaitable<string>;
戻り値

Awaitable<string>

継承元

EmailConfig.generateVerificationToken

id

id: string;

AuthConfig.providers 内のプロバイダーを一意に識別します。URL の一部でもあります。

継承元

EmailConfig.id

maxAge?

optional maxAge: number;
継承元

EmailConfig.maxAge

name

name: string;

デフォルトのサインインページのサインインボタンで使用されるプロバイダー名です。「Google」の場合、対応するボタンには「Google でサインイン」と表示されます。

継承元

EmailConfig.name

normalizeIdentifier()?

optional normalizeIdentifier: (identifier) => string;
パラメーター
パラメーター
identifier文字列
戻り値

文字列

継承元

EmailConfig.normalizeIdentifier

options?

optional options: NodemailerUserConfig;
オーバーライド

EmailConfig.options

secret?

optional secret: string;

検証トークンのハッシュに使用されます。

継承元

EmailConfig.secret

sendVerificationRequest()

sendVerificationRequest: (params) => Awaitable<void>;
パラメーター
パラメーター
paramsオブジェクト
params.expires日付
params.identifier文字列
params.providerNodemailerConfig
params.requestリクエスト
params.themeテーマ
params.token文字列
params.url文字列
戻り値

Awaitable<void>

オーバーライド

EmailConfig.sendVerificationRequest

server?

optional server: AllTransportOptions;

SMTPベースのメールプロバイダーで使用されます。

オーバーライド

EmailConfig.server

type

type: "email";

ProviderTypeを参照してください。

継承元

EmailConfig.type


NodemailerUserConfig

type NodemailerUserConfig: Omit<Partial<NodemailerConfig>, "options" | "type">;

default()

default(config): NodemailerConfig

パラメーター

パラメーター
configNodemailerUserConfig

戻り値

NodemailerConfig

Auth.js © Balázs Orbán and Team -2024