MCPcopy Create free account

hub / github.com/better-auth/better-auth / functions

Functions6,486 in github.com/better-auth/better-auth

↓ 1 callersFunctionstatement
(prepared: D1PreparedStatement)
e2e/smoke/test/fixtures/cloudflare/src/verification-lock.ts:11
↓ 1 callersFunctionstatement
( prepared: D1PreparedStatement, schemaQuery: boolean, )
e2e/smoke/test/fixtures/cloudflare/src/schema-check.ts:20
↓ 1 callersFunctionstopImpersonating
()
packages/better-auth/src/plugins/admin/routes.ts:1376
↓ 1 callersFunctionstorage
( opts?: ConfOptions<Record<string, any>> | undefined, )
packages/electron/src/storage.ts:8
↓ 1 callersFunctionstorageAdapter
(storage: Storage, sessionKeys: Set<string>)
packages/electron/src/client.ts:30
↓ 1 callersFunctionstorageCases
Cases that depend on how the database enforces keys and guarded writes.
packages/oauth-provider/src/oauthClient/endpoints-rotate-keys.test.ts:419
↓ 1 callersFunctionstorageEvent
()
packages/better-auth/src/client/session-refresh.test.ts:321
↓ 1 callersFunctionstoreCacheEntry
(clientId: string, entry: CimdMetadataCacheEntry)
packages/cimd/src/resolver.ts:327
↓ 1 callersFunctionstoreCookies
(response: Response, cookies: Map<string, string>)
packages/sso/src/providers.test.ts:205
↓ 1 callersFunctionstoreFactory
(storeName: string)
packages/better-auth/src/cookies/session-store.ts:158
↓ 1 callersFunctionstoreOTP
(ctx: GenericEndpointContext, otp: string)
packages/better-auth/src/plugins/two-factor/otp/index.ts:127
↓ 1 callersFunctionstorePopupToken
(token: string)
packages/better-auth/src/plugins/oauth-popup/client.ts:73
↓ 1 callersFunctionstoreRefreshTokenRotationReplay
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, refreshToken: OAuthRefreshToken<Scope[]> & { id
packages/oauth-provider/src/token.ts:1137
↓ 1 callersFunctionstoreToken
(ctx: GenericEndpointContext, token: string)
packages/better-auth/src/plugins/magic-link/index.ts:194
↓ 1 callersFunctionstored
()
packages/better-auth/src/plugins/phone-number/phone-number.test.ts:1630
↓ 1 callersFunctionstreamToBytes
( stream: ReadableStream<Uint8Array>, )
packages/electron/test/electron.test.ts:2561
↓ 1 callersFunctionstringDateSuite
( name: string, setup: () => Promise<{ adapter: ReturnType<ReturnType<typeof drizzleAdapter>>; storedCre
e2e/adapter/test/drizzle-adapter/adapter.drizzle.string-dates.test.ts:35
↓ 1 callersFunctionstripBrackets
Strip `[...]` if the entire input is bracketed (IPv6 literal form).
packages/core/src/utils/host.ts:99
↓ 1 callersFunctionstripLoopbackRedirectPort
* Based on the loopback port matching approach in node-oidc-provider. * * @see https://github.com/panva/node-oidc-provider/blob/ea1456f987de7750b6af
packages/oauth-provider/src/authorize.ts:246
↓ 1 callersFunctionstripPort
* Strip trailing `:port` from host-with-port strings. * * - Bracketed IPv6 with port: `[::1]:8080` → `[::1]` * - IPv4/FQDN with port: `127.0.0.1:30
packages/core/src/utils/host.ts:113
↓ 1 callersFunctionstripQuotes
(s: string)
packages/cli/src/utils/check-package-managers.ts:144
↓ 1 callersFunctionstripReservedClaims
* Returns a copy of `claims` with reserved AS-owned names removed. Emits a * `warn` naming the stripped keys when any were present (never silently *
packages/oauth-provider/src/claims.ts:41
↓ 1 callersFunctionstripReservedIdTokenClaims
( claims: Record<string, unknown> | null | undefined, )
packages/oauth-provider/src/authentication-context.ts:39
↓ 1 callersFunctionstripSessionCookie
* Drops the session cookie while keeping every other cookie (notably the OAuth * `state` cookie). This reproduces the callback an Expo in-app browser
packages/better-auth/src/plugins/anonymous/anon.test.ts:29
↓ 1 callersFunctionstripTeamMembershipKey
(member: StoredTeamMember)
packages/better-auth/src/plugins/organization/adapter.ts:169
↓ 1 callersFunctionstripTeamMembershipKeys
(members: StoredTeamMember[])
packages/better-auth/src/plugins/organization/adapter.ts:174
↓ 1 callersFunctionstripTrailingDot
* Strip trailing dots (RFC 1034 absolute DNS form): `localhost.` → `localhost`. * Without this, `metadata.google.internal.` would fall through to `pu
packages/core/src/utils/host.ts:138
↓ 1 callersFunctionstripTrailingSlash
(url: string | undefined)
packages/better-auth/src/plugins/oauth-proxy/utils.ts:9
↓ 1 callersFunctionstripZoneId
Strip IPv6 zone identifier: `fe80::1%eth0` → `fe80::1`.
packages/core/src/utils/host.ts:126
↓ 1 callersFunctionstripeWebhook
(options: StripeOptions)
packages/stripe/src/routes.ts:2008
↓ 1 callersFunctionstubBrowser
()
packages/better-auth/src/plugins/one-tap/one-tap.test.ts:1037
↓ 1 callersFunctionstubMetadataFetch
( url: string, document: Record<string, unknown>, )
packages/cimd/src/flows.test.ts:44
↓ 1 callersFunctionsub
(otp: string)
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:1878
↓ 1 callersFunctionsubmit
(body: string)
packages/sso/src/saml.test.ts:4881
↓ 1 callersFunctionsubmit
(token: string)
packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts:5489
↓ 1 callersFunctionsubscribe
(listener: () => void)
docs/lib/mobile-navigation.ts:10
↓ 1 callersFunctionsubscriptionSuccess
(options: StripeOptions)
packages/stripe/src/routes.ts:1693
↓ 1 callersFunctionsvelteKitHandler
({ auth, event, resolve, building, }: { auth: { handler: (request: Request) => Response | Promise<Respo
packages/better-auth/src/integrations/svelte-kit.ts:15
↓ 1 callersFunctionsveltekitCookies
( getRequestEvent: () => RequestEvent<any, any>, )
packages/better-auth/src/integrations/svelte-kit.ts:58
↓ 1 callersFunctionsyncSeatsAfterMemberChange
(data: { organization: Organization & WithStripeCustomerId; })
packages/stripe/src/index.ts:177
↓ 1 callersFunctionsyncTeamMemberCount
( adapter: DBTransactionAdapter, teamId: string, )
packages/better-auth/src/plugins/organization/adapter.ts:70
↓ 1 callersFunctiontableFor
(name: string)
e2e/adapter/test/drizzle-v2-relations-adapter/adapter.drizzle.schema-check.test.ts:82
↓ 1 callersFunctiontableHasRows
( db: Kysely<Record<string, Record<string, unknown>>>, dbType: KyselyDatabaseType, table: string, )
packages/better-auth/src/db/get-migration.ts:532
↓ 1 callersFunctiontablesFor
* Every table this configuration writes, declared the way `auth generate` would.
packages/drizzle-adapter/src/schema-check.test.ts:34
↓ 1 callersFunctiontamperSignature
(token: string)
packages/oauth-provider/src/jwt-verification-errors.test.ts:42
↓ 1 callersFunctiontanstackStartCookies
()
packages/better-auth/src/integrations/tanstack-start.ts:24
↓ 1 callersFunctiontenantKeyStore
Picks signing keys by a request header, as a multi-tenant key store does.
packages/oauth-provider/src/local-jwks.test.ts:201
↓ 1 callersFunctiontenantOf
(ctx: { headers?: Headers | undefined })
packages/oauth-provider/src/local-jwks.test.ts:273
↓ 1 callersFunctionterminate
(child: ChildProcess)
e2e/integration/test-utils/src/playwright.ts:56
↓ 1 callersFunctiontest
()
e2e/adapter/test/adapter-factory/scim-http-test-suite.ts:91
↓ 1 callersFunctiontestClientPlugin2
()
packages/better-auth/src/client/test-plugin.ts:161
↓ 1 callersFunctiontestDeepMergePluginA
()
packages/better-auth/src/client/test-plugin.ts:194
↓ 1 callersFunctiontestDeepMergePluginB
()
packages/better-auth/src/client/test-plugin.ts:208
↓ 1 callersFunctiontestPlugin
()
packages/cli/test/generate.test.ts:1101
↓ 1 callersFunctiontestPlugin
()
test/unit/types/db.test.ts:14
↓ 1 callersFunctiontestUtils
(overrideOpts?: BetterAuthOptions)
packages/electron/test/utils.ts:116
↓ 1 callersFunctiontitleFontSize
(title: string)
docs/app/api/og-blog/route.tsx:40
↓ 1 callersFunctiontitleFontSize
(title: string)
docs/app/api/og/route.tsx:42
↓ 1 callersFunctiontoAudienceValues
(audienceClaim: unknown)
packages/oauth-provider/src/resource-binding.test.ts:17
↓ 1 callersFunctiontoBoolean
(val: boolean | string | undefined)
packages/core/src/env/env-impl.ts:47
↓ 1 callersFunctiontoCamelCase
(input: string)
packages/core/src/utils/string.ts:25
↓ 1 callersFunctiontoChallengeResponse
( error: unknown, resource: string, opts?: Parameters<typeof createResourceServerChallenge>[2], )
packages/mcp/src/handler.ts:102
↓ 1 callersFunctiontoChecksumAddress
(address: string)
packages/better-auth/src/utils/hashing.ts:9
↓ 1 callersFunctiontoDatabaseIndexMap
(indexes: readonly DatabaseIndexMetadata[])
packages/better-auth/src/db/get-migration.ts:189
↓ 1 callersFunctiontoHeadersInit
Preserves standard `HeadersInit` values and removes undefined record entries.
packages/better-auth/src/client/vue/index.ts:30
↓ 1 callersFunctiontoHex
(n: number)
docs/app/brand/brand-client.tsx:284
↓ 1 callersFunctiontoKebabCase
(input: string)
packages/core/src/utils/string.ts:19
↓ 1 callersFunctiontoOpenApiPath
(path: string)
packages/better-auth/src/plugins/open-api/generator.ts:837
↓ 1 callersFunctiontoPascalCase
(input: string)
packages/core/src/utils/string.ts:36
↓ 1 callersFunctiontoPosixPath
(path: string)
test/unit/no-multi-clause-adapter-update.test.ts:24
↓ 1 callersFunctiontoPrismaValue
(v: unknown)
packages/prisma-adapter/src/prisma-adapter.ts:300
↓ 1 callersFunctiontoReleaseTitle
Orphan titles come from a changeset's first line, which can be a paragraph.
packages/release-tooling/src/release-notes/collect.ts:215
↓ 1 callersFunctiontoResourceRequestInput
( request: Request | ResourceRequestInput, )
packages/oauth-provider/src/client-resource.ts:131
↓ 1 callersFunctiontoStderr
(question: PromptObject)
packages/cli/src/utils/prompt.ts:28
↓ 1 callersFunctiontoStringArray
(value: unknown)
packages/sso/src/saml/response-binding.ts:37
↓ 1 callersFunctiontoStringSet
(values: Array<string | undefined>)
packages/sso/src/saml/response-binding.ts:49
↓ 1 callersFunctiontoTypes
(entry: string)
packages/better-auth/src/package-exports.test.ts:24
↓ 1 callersFunctiontoValidIdentifier
* Convert a schema namespace into a valid JavaScript identifier so it can be * used as the `export const <name>Schema = pgSchema(...)` variable name.
packages/drizzle-adapter/src/relations-v2/generate-drizzle-schema.ts:48
↓ 1 callersFunctiontoValidIdentifier
(str: string)
packages/cli/src/generators/drizzle.ts:19
↓ 1 callersFunctiontoast
({ ...props }: Toast)
demo/nextjs/hooks/use-toast.ts:143
↓ 1 callersFunctiontoken
(authorization: string)
packages/oauth-provider/src/challenge-exposure.test.ts:48
↓ 1 callersFunctiontokenEndpoint
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/token.ts:104
↓ 1 callersFunctiontokenFor
(identity: { email: string; name: string; emailVerified: boolean; })
packages/better-auth/src/social.test.ts:3987
↓ 1 callersFunctiontokenForm
(params: Record<string, string | undefined>)
packages/oauth-provider/src/resource-binding.test.ts:22
↓ 1 callersFunctiontotp2fa
(options?: TOTPOptions | undefined)
packages/better-auth/src/plugins/two-factor/totp/index.ts:98
↓ 1 callersFunctiontrack
(event: TelemetryEvent)
packages/telemetry/src/index.ts:33
↓ 1 callersFunctiontrack
(event: TelemetryEvent)
packages/telemetry/src/node.ts:322
↓ 1 callersFunctiontransformGeneratedModel
(data: Record<string, any>)
packages/test-utils/src/adapter/create-test-suite.ts:460
↓ 1 callersFunctiontransformInput
( data: Record<string, any>, defaultModelName: string, action: "create" | "update" | "findOne" | "fin
packages/core/src/db/adapter/factory.ts:197
↓ 1 callersFunctiontransformJoinClause
( baseModel: string, unsanitizedJoin: JoinOption | undefined, select: string[] | undefined, )
packages/core/src/db/adapter/factory.ts:629
↓ 1 callersFunctiontransformOutput
( data: Record<string, any> | null, inputModel: string, select: string[] = [], join: JoinConfig |
packages/core/src/db/adapter/factory.ts:307
↓ 1 callersFunctiontransformSingleOutput
( data: Record<string, any> | null, inputModel: string, select: string[] = [], )
packages/core/src/db/adapter/factory.ts:313
↓ 1 callersFunctiontrimOWS
* Trim leading/trailing OWS (space / horizontal tab) per RFC 7230 §3.2.3. * Narrower than `String.prototype.trim()`, which strips CR/LF and other *
packages/better-auth/src/cookies/cookie-utils.ts:210
↓ 1 callersFunctiontruncateAllTables
( dialect: Dialect, db: RawClient, )
e2e/adapter/test/prisma-adapter/push-prisma-schema.ts:45
↓ 1 callersFunctiontruncateUtf8
(value: string, maxBytes: number)
packages/core/src/db/database-index.ts:15
↓ 1 callersFunctiontruncateUtf8
(value: string, maxBytes: number)
docs/lib/copy-schema/utils.ts:9
↓ 1 callersFunctiontrustAnchors
( identityProvider: ReturnType<typeof createIdP>["entityMeta"], )
packages/sso/src/routes/providers.ts:181
↓ 1 callersFunctiontryCatch
( promise: Promise<T>, )
packages/test-utils/src/adapter/create-test-suite.ts:131
↓ 1 callersFunctiontryDecode
(str: string)
packages/better-auth/src/plugins/bearer/index.ts:31
↓ 1 callersFunctiontryExtractCodeFromUrl
(urlString: string)
packages/cimd/src/flows.test.ts:111
← previousnext →4,101–4,200 of 6,486, ranked by callers