UNPKG

@daveyplate/better-auth-ui

Version:

Plug & play shadcn/ui components for better-auth

44 lines (41 loc) 1.08 kB
export type OrganizationLogoOptions = { /** * Upload a logo image and return the URL string * @remarks `(file: File) => Promise<string>` */ upload?: (file: File) => Promise<string | undefined | null> /** * Logo size for resizing * @default 256 if upload is provided, 128 otherwise */ size: number /** * File extension for logo uploads * @default "png" */ extension: string } export type OrganizationOptions = { /** * Logo configuration * @default undefined */ logo?: boolean | Partial<OrganizationLogoOptions> /** * Custom roles to add to the built-in roles (owner, admin, member) * @default [] */ customRoles?: Array<{ role: string; label: string }> } export type OrganizationOptionsContext = { /** * Logo configuration * @default undefined */ logo?: OrganizationLogoOptions /** * Custom roles to add to the built-in roles (owner, admin, member) * @default [] */ customRoles: Array<{ role: string; label: string }> }