UNPKG

@better-auth-ui/core

Version:

Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.

48 lines (47 loc) 1.29 kB
import { MagicLinkLocalization } from './magic-link-localization'; declare module "../../lib/view-paths" { /** Widens `AuthViewPaths` with the magic-link paths when this plugin is imported. */ interface AuthViewPaths { /** @default "magic-link" */ magicLink?: string; /** @default "magic-link-sent" */ magicLinkSent?: string; } } export type MagicLinkPluginOptions = { /** * Override the plugin's default localization strings. * @remarks `MagicLinkLocalization` */ localization?: Partial<MagicLinkLocalization>; /** * URL segment for the magic-link view. * @remarks `string` * @default "magic-link" */ path?: string; /** * URL segment for the magic-link-sent confirmation view. * @remarks `string` * @default "magic-link-sent" */ sentPath?: string; }; export declare const magicLinkPlugin: ((options?: MagicLinkPluginOptions | undefined) => { localization: { magicLink: string; sendMagicLink: string; magicLinkSent: string; magicLinkSentTo: string; }; viewPaths: { auth: { magicLink: string; magicLinkSent: string; }; }; } & { id: "magicLink"; }) & { id: "magicLink"; };