Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/better-auth/better-auth
/ functions
Functions
6,653 in github.com/better-auth/better-auth
⨍
Functions
6,653
◇
Types & classes
1,389
↓ 1 callers
Function
withAccountFields
* The generated data model with extra fields on the account model.
packages/prisma-adapter/src/schema-check.test.ts:44
↓ 1 callers
Function
withApplyDefault
( value: any, field: DBFieldAttribute, action: "create" | "update" | "findOne" | "findMany", )
packages/core/src/db/adapter/utils.ts:3
↓ 1 callers
Function
withCode
(message: string, code: string)
packages/oauth-provider/src/private-key-jwt-stale-if-error.test.ts:24
↓ 1 callers
Function
withCode
(message: string, code: string)
packages/cimd/src/stale-if-error.test.ts:61
↓ 1 callers
Function
withCors
(handler: Function)
demo/nextjs/app/api/auth/[...all]/route.ts:26
↓ 1 callers
Function
withCors
( handler: (request: Request) => Promise<Response>, )
demo/nextjs/app/api/mcp/route.ts:109
↓ 1 callers
Function
withDescription
( schema: OpenAPISchema, zodType: z.ZodType<unknown>, )
packages/better-auth/src/plugins/open-api/generator.ts:176
↓ 1 callers
Function
withExposedHeaders
( exposed: string | null | undefined, ...headers: string[] )
packages/oauth-provider/src/dpop.ts:36
↓ 1 callers
Function
withMarkdownPageUrl
(node: Item)
docs/lib/llm-text.ts:198
↓ 1 callers
Function
withMarkdownPageUrls
(node: Node)
docs/lib/llm-text.ts:202
↓ 1 callers
Function
withMonorepoPaths
* Add the monorepo paths to the Metro config. * This allows Metro to resolve modules from the monorepo. * * @see https://docs.expo.dev/guides/monor
demo/expo/metro.config.js:20
↓ 1 callers
Function
withProvider
(provider: OAuthProvider)
packages/better-auth/src/plugins/oauth-proxy/oauth-proxy.test.ts:2519
↓ 1 callers
Function
withQueryParams
* Adds `params` to the endpoint's query and removes the pairs they replace. * The rest of the query keeps its original text, including empty segments
packages/core/src/oauth2/create-authorization-url.ts:32
↓ 1 callers
Function
withRefListLock
( refKey: string, task: () => Promise<T>, )
packages/api-key/src/adapter.ts:256
↓ 1 callers
Function
withSAMLResponse
( signIn: Awaited<ReturnType<typeof initiateSAMLSignIn>>, samlResponse: string, )
packages/sso/src/saml.test.ts:6921
↓ 1 callers
Function
withServerOnly
* Set `metadata.SERVER_ONLY` while preserving any existing metadata * (`$Infer`, `openapi`, ...).
packages/core/src/api/index.ts:177
↓ 1 callers
Function
withTimeout
( promise: Promise<T>, timeoutMs: number, )
packages/better-auth/src/plugins/captcha/utils.ts:20
↓ 1 callers
Function
withVerificationConsumeLock
( key: string, fn: () => Promise<T>, )
packages/better-auth/src/db/internal-adapter.ts:270
↓ 1 callers
Function
withWindows
(run: () => Promise<void>)
packages/electron/test/electron.test.ts:1154
↓ 1 callers
Function
withoutNativeTransactions
( adapterFactory: ReturnType<typeof memoryAdapter>, )
packages/scim/src/scim-connections.test.ts:18
↓ 1 callers
Function
withoutNullAttributes
A null key in a value merged into a selected entry removes that sub-attribute.
packages/scim/src/user-patch.ts:700
↓ 1 callers
Function
withoutOIDCSecret
( configuration: OIDCConfig | undefined, )
packages/sso/src/provider-reference.ts:49
↓ 1 callers
Function
withoutSAMLPrivateKeys
( configuration: SAMLConfig | undefined, )
packages/sso/src/provider-reference.ts:58
↓ 1 callers
Function
withoutSourceExtension
Strips a source extension so paths can be compared across TS and JS inputs.
packages/cli/src/utils/get-config.ts:333
↓ 1 callers
Function
wrapEndpointHandler
( handler: AuthEndpointHandler<Path, Options, R>, options: Options, )
packages/core/src/api/index.ts:98
↓ 1 callers
Function
writeCursorConfig
(content: string)
packages/cli/test/ai.test.ts:59
↓ 1 callers
Function
writeFetchResponse
( res: ServerResponse, response: Response, )
e2e/integration/vanilla-node/e2e/app.ts:32
↓ 1 callers
Function
writeInstalledPackage
(name: string, version: string)
packages/cli/test/info.test.ts:24
↓ 1 callers
Function
writeItem
( key: string, value: string, currentBaseValue: string | null, )
packages/expo/src/client-storage.ts:396
↓ 1 callers
Function
writeMcpConfig
(configPath: string, entry: McpEntry)
packages/cli/src/commands/ai.ts:754
↓ 1 callers
Function
writeMcpConfigInteractive
( tool: string, scope: "project" | "global", args: string[], )
packages/cli/src/commands/ai.ts:333
↓ 1 callers
Function
writeOpenCodeConfig
( configPath: string, entry: { type: string; command: string; args: string[]; enabled: boolean }, )
packages/cli/src/commands/ai.ts:316
↓ 1 callers
Function
writeTree
( root: string, files: Record<string, string>, )
packages/cli/test/get-config.test.ts:1583
↓ 1 callers
Function
yandex
(options: YandexOptions)
packages/better-auth/src/plugins/generic-oauth/providers/yandex.ts:51
↓ 1 callers
Function
zoom
(userOptions: ZoomOptions)
packages/core/src/social-providers/zoom.ts:146
Function
$returningId
()
e2e/adapter/test/drizzle-v2-relations-adapter/adapter.drizzle.mysql-serial-insert-id.test.ts:53
Function
AIChat
({ children }: { children: ReactNode })
docs/components/ai-chat.tsx:62
Function
AIChatPanel
()
docs/components/ai-chat.tsx:145
Function
AIChatTrigger
({ className, ...props }: ComponentProps<"button">)
docs/components/ai-chat.tsx:106
Function
AIMessage
({ message, messages, messageIndex, isStreaming, ...props }: { message: UIMessage; messages?: UIMessage
docs/components/command-menu.tsx:665
Function
AIMode
({ chat, onClose, onTabToggle, }: { chat: ReturnType<typeof useChat>; onClose: () => void; onTabToggle:
docs/components/command-menu.tsx:401
Function
AITextInput
({ value, onChange, onSubmit, disabled, placeholder, }: { value: string; onChange: (v: string) => void;
docs/components/command-menu.tsx:622
Function
APIMethod
({ children, ...options }: ApiMethodOptions & { children: ReactNode })
docs/components/api-method.tsx:41
Function
APIMethod
({ children, path, method = "GET", }: { children?: ReactNode; path?: string; method?: string; [key: str
docs/components/docs/mdx-components.tsx:64
Function
AUTH_SECRET
()
packages/core/src/env/env-impl.ts:103
Function
AccentSwatch
({ className, label, }: { className: string; label: string; })
docs/app/brand/brand-client.tsx:356
Function
Accordion
({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>)
docs/components/ui/accordion.tsx:9
Function
AccordionContent
({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>)
docs/components/ui/accordion.tsx:50
Function
AccordionContent
({ ref, className, children, ...props }: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Content>
demo/nextjs/components/ui/accordion.tsx:50
Function
AccordionItem
({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>)
docs/components/ui/accordion.tsx:15
Function
AccordionItem
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item> & { ref: Rea
demo/nextjs/components/ui/accordion.tsx:11
Function
AccordionTrigger
({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>)
docs/components/ui/accordion.tsx:28
Function
AccordionTrigger
({ ref, className, children, ...props }: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>
demo/nextjs/components/ui/accordion.tsx:26
Function
AccountConfirmation
({ account, authorizationFields, }: AccountConfirmationProps)
demo/nextjs/app/scim-demo/idp/authorize/account-confirmation.tsx:27
Function
AccountSwitcher
({ deviceSessions, initialSession, }: { deviceSessions: DeviceSession[]; initialSession: SessionData; })
demo/nextjs/components/account-switch.tsx:27
Function
AddPasskey
()
demo/nextjs/app/dashboard/_components/user-card.tsx:392
Function
AddToCursor
()
docs/components/docs/mdx-components.tsx:587
Function
AdminDashboard
()
demo/nextjs/app/admin/page.tsx:78
Function
AiNativeSection
()
docs/components/landing/framework-sections.tsx:1247
Function
Alert
({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)
docs/components/ui/alert.tsx:23
Function
Alert
({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>)
demo/nextjs/components/ui/alert.tsx:23
Function
AlertDescription
({ className, ...props }: React.ComponentProps<"div">)
docs/components/ui/alert.tsx:51
Function
AlertDescription
({ className, ...props }: React.ComponentProps<"div">)
demo/nextjs/components/ui/alert.tsx:51
Function
AlertDialogAction
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Action> & { ref?
demo/nextjs/components/ui/alert-dialog.tsx:114
Function
AlertDialogCancel
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Cancel> & { ref?
demo/nextjs/components/ui/alert-dialog.tsx:129
Function
AlertDialogContent
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Content> & { ref
demo/nextjs/components/ui/alert-dialog.tsx:32
Function
AlertDialogDescription
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Description> & {
demo/nextjs/components/ui/alert-dialog.tsx:96
Function
AlertDialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
demo/nextjs/components/ui/alert-dialog.tsx:67
Function
AlertDialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
demo/nextjs/components/ui/alert-dialog.tsx:53
Function
AlertDialogOverlay
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Overlay> & { ref
demo/nextjs/components/ui/alert-dialog.tsx:14
Function
AlertDialogTitle
({ ref, className, ...props }: React.ComponentPropsWithoutRef<typeof AlertDialogPrimitive.Title> & { ref?:
demo/nextjs/components/ui/alert-dialog.tsx:81
Function
AlertTitle
({ className, ...props }: React.ComponentProps<"div">)
docs/components/ui/alert.tsx:38
Function
AlertTitle
({ className, ...props }: React.ComponentProps<"div">)
demo/nextjs/components/ui/alert.tsx:38
Function
AlertsBlock
()
docs/app/brand/brand-client.tsx:720
Function
AnimatedCounter
({ value, duration = 2000, }: { value: number; duration?: number; })
docs/app/community/community-client.tsx:138
Function
AnotherAccountBtn
()
demo/nextjs/app/(auth)/oauth/select-account/account-button.tsx:60
Function
ApiMethodTabs
({ className, ...props }: React.ComponentProps<"div"> & { defaultValue: string | null })
docs/components/api-method-tabs.tsx:15
Function
ApiMethodTabsContent
({ className, ...props }: React.ComponentProps<"div"> & { value: string })
docs/components/api-method-tabs.tsx:74
Function
ApiMethodTabsList
({ className, ...props }: React.ComponentProps<"div">)
docs/components/api-method-tabs.tsx:37
Function
ApiMethodTabsTrigger
({ className, ...props }: React.ComponentProps<"button"> & { value: string })
docs/components/api-method-tabs.tsx:53
Function
App
()
demo/electron/src/renderer/src/App.tsx:6
Function
App
()
demo/oidc-client/src/App.tsx:10
Function
App
()
e2e/integration/solid-vinxi/src/app.tsx:9
Function
AsyncLocalStorage
()
packages/core/src/async_hooks/index.test.ts:14
Function
AuthProvider
({ children, issuer, clientId, })
demo/oidc-client/src/lib/auth/AuthProvider.tsx:15
Function
AuthorizePage
({ searchParams, }: AuthorizePageProps)
demo/nextjs/app/(auth)/oauth/consent/page.tsx:32
Function
Avatar
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>)
demo/electron/src/renderer/src/components/ui/avatar.tsx:6
Function
Avatar
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>)
demo/nextjs/components/ui/avatar.tsx:8
Function
AvatarFallback
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>)
demo/electron/src/renderer/src/components/ui/avatar.tsx:35
Function
AvatarFallback
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>)
demo/nextjs/components/ui/avatar.tsx:37
Function
AvatarImage
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>)
demo/electron/src/renderer/src/components/ui/avatar.tsx:22
Function
AvatarImage
({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>)
demo/nextjs/components/ui/avatar.tsx:24
Function
BETTER_AUTH_SECRET
()
packages/core/src/env/env-impl.ts:100
Function
BETTER_AUTH_TELEMETRY
()
packages/core/src/env/env-impl.ts:106
Function
BETTER_AUTH_TELEMETRY_ENDPOINT
()
packages/core/src/env/env-impl.ts:118
Function
BETTER_AUTH_TELEMETRY_ID
()
packages/core/src/env/env-impl.ts:109
Function
BackgroundRippleEffect
({ rows = 8, cols = 27, cellSize = 56, }: { rows?: number; cols?: number; cellSize?: number; })
demo/electron/src/renderer/src/components/background-ripple-effect.tsx:6
Function
BackgroundRippleEffect
({ rows = 8, cols = 27, cellSize = 56, }: { rows?: number; cols?: number; cellSize?: number; })
demo/nextjs/components/background-ripple-effect.tsx:6
Function
Badge
({ className, variant, asChild = false, ...props }: React.ComponentProps<"span"> & VariantProps<typeof ba
docs/components/ui/badge.tsx:29
Function
Badge
({ className, variant, ...props }: BadgeProps)
demo/nextjs/components/ui/badge.tsx:31
← previous
next →
4,501–4,600 of 6,653, ranked by callers