UNPKG

@better-auth-ui/core

Version:

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

46 lines (45 loc) 1.4 kB
import { SiweLocalization } from './siwe-localization'; import { SiweWalletConnector, SiweWalletManager } from './siwe-wallet'; export type SiweEmailMode = "none" | "optional" | "required"; export type SiwePluginOptions = { connector: SiweWalletConnector; /** Domain checked by the Better Auth SIWE server plugin. */ domain: string; /** Absolute URI included in the ERC-4361 message. */ uri: string; statement?: string; /** @default "optional" */ email?: SiweEmailMode; walletManager?: SiweWalletManager; localization?: Partial<SiweLocalization>; }; export declare const siwePlugin: ((options: SiwePluginOptions) => { connector: SiweWalletConnector; domain: string; uri: string; statement: string | undefined; email: SiweEmailMode; walletManager: SiweWalletManager | undefined; localization: { ethereum: string; continueWithEthereum: string; signMessage: string; email: string; emailDescription: string; emailOptional: string; wallets: string; walletsDescription: string; connectWallet: string; noWallets: string; primary: string; setPrimary: string; removeWallet: string; removeWalletTitle: string; removeWalletWarning: string; chain: string; }; } & { id: "siwe"; }) & { id: "siwe"; };