← @mortar-kit/auth

EmailOptionsinterface

import { EmailOptions } from '@mortar-kit/auth'

interface EmailOptions

Options for email.

Properties

mailer: Mailer

Sends the sign-in emails. consoleMailer() prints them, for development.

store: ContentStore

Keeps pending sign-ins (hashes, for minutes). Any ContentStore works; with the JSON-file store, use a directory outside your content and git (e.g. createJsonFileStore({ dir: '.data' })).

siteName?: string

The site's name in the email's subject and text. Default: the site's host.

expiresIn?: number

Minutes until a link or code expires. Default 15.

label?: string

Label of the email field's button. Default "Email me a sign-in link".

id?: string

The method's id, in its URLs. Default email.