EmailOptionsinterface
import { EmailOptions } from '@mortar-kit/auth'
interface EmailOptionsOptions for email.
Properties
mailer: MailerSends the sign-in emails.
consoleMailer()prints them, for development.store: ContentStoreKeeps 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?: stringThe site's name in the email's subject and text. Default: the site's host.
expiresIn?: numberMinutes until a link or code expires. Default 15.
label?: stringLabel of the email field's button. Default "Email me a sign-in link".
id?: stringThe method's id, in its URLs. Default
email.