UNPKG

@better-auth-ui/core

Version:

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

19 lines (18 loc) 887 B
export type EmailProviderLink = { /** Human-readable provider name, e.g. `"Gmail"` or `"GMX"`. */ companyProvider: string; /** Direct URL to the provider's webmail login, e.g. `"https://mail.google.com/mail/"`. */ loginUrl: string; }; /** * Resolve the webmail login link for an email address from its domain. * * Mirrors the synchronous domain lookup of `@mikkelscheike/email-provider-links` * but reads its bundled provider dataset directly so it stays browser-safe — the * package's runtime depends on Node built-ins (`fs`/`dns`) and cannot be bundled * for the client. Covers 130+ providers including niche ones like `gmx.de`. * * @param email - Full email address, e.g. `"jane@gmx.de"`. * @returns The matching provider link, or `null` for unknown/custom domains. */ export declare function getEmailProviderLink(email: string): EmailProviderLink | null;