import type { EmailAdapter, PluginsCommonOptions, KeyValueAdapter } from "adminforth"; export interface PluginOptions extends PluginsCommonOptions{ /** * Field name in auth resource which contains email */ emailField: string; /** * From which email to send password reset emails * e.g. no-reply@example.com * Example.com must be allowed in provider to send emails */ sendFrom: string; adapter: EmailAdapter; /** * To work properly, this plugin requires a virtual password field in auth resource. * If you don't need it, you can add it and set showIn = [] * which will define any constraints which determine the password strength (regex, minLength). * When user will enter passowrd, it will be validated against this field constraints */ passwordField: string; pageInjection?: { panelHeader?: string; underInputs?: string; } /** * Signup component order under login button */ loginPageComponentOrder?: number; /** * @deprecated - userResetTokensKeyValueAdapter is no longer used. Kept for backwards compatibility. */ userResetTokensKeyValueAdapter?: KeyValueAdapter; /** * The origin(s) (scheme + host + optional port) of the admin panel that are * allowed to appear in password reset links, e.g. "https://admin.example.com". */ expectedOrigin: string | string[]; }