@better-auth-ui/core
Version:
Authentication components and data utilities for [Better Auth](https://better-auth.com), available for React and Solid.
14 lines (13 loc) • 673 B
TypeScript
import { SocialProvider } from 'better-auth/social-providers';
import { AuthSocialProvider } from '../config/social-provider-config';
/**
* Mapping of social authentication provider identifiers to their human-readable display names.
*/
export declare const providerNames: Record<SocialProvider, string>;
/**
* Get the human-readable display name for an authentication provider.
*
* @param provider - The provider identifier (e.g., "github", "google").
* @returns The mapped display name for `provider` if available, otherwise `provider` with its first character capitalized.
*/
export declare function getProviderName(provider: AuthSocialProvider | string): string;