providers/nodemailer
NodemailerConfig
すべてのProviderTypeで共有
継承元
プロパティ
apiKey?
optional apiKey: string;
HTTP ベースのメールプロバイダーで使用されます。
継承元
from?
optional from: string;
継承元
generateVerificationToken()?
optional generateVerificationToken: () => Awaitable<string>;
戻り値
Awaitable
<string
>
継承元
EmailConfig
.generateVerificationToken
id
id: string;
AuthConfig.providers 内のプロバイダーを一意に識別します。URL の一部でもあります。
継承元
maxAge?
optional maxAge: number;
継承元
name
name: string;
デフォルトのサインインページのサインインボタンで使用されるプロバイダー名です。「Google」の場合、対応するボタンには「Google でサインイン」と表示されます。
継承元
normalizeIdentifier()?
optional normalizeIdentifier: (identifier) => string;
パラメーター
パラメーター | 型 |
---|---|
identifier | 文字列 |
戻り値
文字列
継承元
EmailConfig
.normalizeIdentifier
options?
optional options: NodemailerUserConfig;
オーバーライド
secret?
optional secret: string;
検証トークンのハッシュに使用されます。
継承元
sendVerificationRequest()
sendVerificationRequest: (params) => Awaitable<void>;
パラメーター
パラメーター | 型 |
---|---|
params | オブジェクト |
params.expires | 日付 |
params.identifier | 文字列 |
params.provider | NodemailerConfig |
params.request | リクエスト |
params.theme | テーマ |
params.token | 文字列 |
params.url | 文字列 |
戻り値
Awaitable
<void
>
オーバーライド
EmailConfig
.sendVerificationRequest
server?
optional server: AllTransportOptions;
SMTPベースのメールプロバイダーで使用されます。
オーバーライド
type
type: "email";
ProviderTypeを参照してください。
継承元
NodemailerUserConfig
type NodemailerUserConfig: Omit<Partial<NodemailerConfig>, "options" | "type">;
default()
default(config): NodemailerConfig
パラメーター
パラメーター | 型 |
---|---|
config | NodemailerUserConfig |