MCPcopy Create free account

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

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

↓ 1 callersFunctionbuildCookieHeader
(cookies: Map<string, string>)
e2e/smoke/test/session-token-refresh.spec.ts:210
↓ 1 callersFunctionbuildDesiredGrants
( options: SCIMOptions, database: DBTransactionAdapter, input: { provisioningDomainId: string; userId:
packages/scim/src/projection.ts:200
↓ 1 callersFunctionbuildDocsIndex
()
docs/lib/ai-chat/route.ts:12
↓ 1 callersFunctionbuildGenericDuplicateResponse
()
packages/better-auth/src/api/routes/sign-up.ts:245
↓ 1 callersFunctionbuildHooksStripeOptions
(mock: StripeMock)
packages/stripe/test/stripe-organization.test.ts:1960
↓ 1 callersFunctionbuildIdToken
(sub: string)
packages/better-auth/src/social.test.ts:4341
↓ 1 callersFunctionbuildLineItemOptions
(mock: StripeMock)
packages/stripe/test/checkout.test.ts:23
↓ 1 callersFunctionbuildMcpArgs
(registry: string)
packages/cli/src/commands/ai.ts:693
↓ 1 callersFunctionbuildOAuthDeviceGrant
()
packages/oauth-provider/src/device-code.ts:221
↓ 1 callersFunctionbuildOIDCConfig
()
packages/sso/src/routes/sso.ts:560
↓ 1 callersFunctionbuildObjectString
(obj: any)
packages/cli/src/commands/init/utility/plugin.ts:212
↓ 1 callersFunctionbuildOrgStripeOptions
(mock: StripeMock)
packages/stripe/test/stripe-organization.test.ts:38
↓ 1 callersFunctionbuildPackageMetadata
( repository: string, entries: ReleaseEntry[], previousTag: string, commitRef: string, )
packages/release-tooling/src/release-notes/collect.ts:478
↓ 1 callersFunctionbuildRefreshAccessTokenRequest
({ refreshToken, options, extraParams, resource, headers: extraHeaders, }: RefreshAccessTokenRequestBaseI
packages/core/src/oauth2/refresh-access-token.ts:97
↓ 1 callersFunctionbuildRegistrationVerification
( aaguid: string, credentialID: string, )
packages/passkey/src/passkey.test.ts:1593
↓ 1 callersFunctionbuildRequest
()
packages/passkey/src/passkey-origin.test.ts:423
↓ 1 callersFunctionbuildResourceRow
* Builds the create-payload from a normalized input. Fills in defaults * for the fields seedResources uses so the admin-CRUD and seed paths * write
packages/oauth-provider/src/oauthResource/endpoints.ts:56
↓ 1 callersFunctionbuildResourceServerMetadata
( ctx: GenericEndpointContext, providerOptions: OAuthOptions<Scope[]>, resource: string, )
packages/mcp/src/plugin.ts:91
↓ 1 callersFunctionbuildRewriteContext
(entries: ReleaseEntry[])
packages/release-tooling/src/release-notes/pipeline.ts:45
↓ 1 callersFunctionbuildSAMLResponse
* A signed Response whose assertion validity window is under the test's * control. The bearer confirmation keeps the same deadline as Conditions.
packages/sso/src/saml-clock-skew.test.ts:73
↓ 1 callersFunctionbuildSAMLResponse
({ audienceGroups = [[serviceProviderEntityId]], destination = serviceProviderAcsUrl, recipient = servicePr
packages/sso/src/saml/response-binding.test.ts:27
↓ 1 callersFunctionbuildSeatPlanOptions
(mock: StripeMock)
packages/stripe/test/seat-based-billing.test.ts:40
↓ 1 callersFunctionbuildSeedUpdate
* Builds the partial update payload when re-seeding an existing row. * * - `overwrite` mode replaces every policy column with the input value * (
packages/oauth-provider/src/resources.ts:766
↓ 1 callersFunctionbuildSingleCondition
(w: Where)
packages/prisma-adapter/src/prisma-adapter.ts:283
↓ 1 callersFunctionbuildStatic
()
packages/passkey/src/passkey-origin.test.ts:419
↓ 1 callersFunctionbuildSyntheticUserOutput
( options: BetterAuthOptions, data: Record<string, unknown>, )
packages/better-auth/src/db/schema.ts:80
↓ 1 callersFunctionbuildTrialOptions
(mock: StripeMock)
packages/stripe/test/checkout.test.ts:1838
↓ 1 callersFunctionbuildVerificationUris
( verificationUri: string | undefined, baseURL: string, userCode: string, )
packages/better-auth/src/plugins/device-authorization/routes.ts:1179
↓ 1 callersFunctionbump
(id: string)
e2e/adapter/test/drizzle-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:91
↓ 1 callersFunctionbump
(id: string)
e2e/adapter/test/drizzle-v2-relations-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:92
↓ 1 callersFunctionbundledKyselyBytes
(entry: string, options?: BuildOptions)
e2e/smoke/test/esbuild.spec.ts:40
↓ 1 callersFunctioncachePromise
( key: string, setPromise: () => Promise<T>, )
docs/components/mdx/mermaid.tsx:19
↓ 1 callersFunctioncalculateGroupingStats
()
packages/test-utils/src/adapter/create-test-suite.ts:790
↓ 1 callersFunctioncallApi
( path: string, accessToken: string, requestOptions: oauth.ProtectedResourceRequestOptions = options,
e2e/smoke/test/resource-server.spec.ts:153
↓ 1 callersFunctioncallOneTap
()
packages/better-auth/src/plugins/one-tap/one-tap.test.ts:364
↓ 1 callersFunctioncallParenIndex
From just past `.update`, skip whitespace and an optional balanced `<...>` * type-argument list, and return the index of the call's `(`, or -1 if thi
test/unit/no-multi-clause-adapter-update.test.ts:129
↓ 1 callersFunctioncallback
(path)
packages/better-auth/src/client/config.ts:136
↓ 1 callersFunctioncallbackSSO
(options?: SSOOptions)
packages/sso/src/routes/sso.ts:1958
↓ 1 callersFunctioncallbackSSOShared
(options?: SSOOptions)
packages/sso/src/routes/sso.ts:1977
↓ 1 callersFunctioncanSatisfyEssentialAcrRequest
( value: unknown, currentAcr: string, )
packages/oauth-provider/src/claims-request.ts:76
↓ 1 callersFunctioncancel
()
packages/cli/src/commands/create-admin.ts:31
↓ 1 callersFunctioncancel
(message: string)
packages/cli/src/commands/init/index.ts:116
↓ 1 callersFunctioncancelInvitation
(options: O)
packages/better-auth/src/plugins/organization/routes/crud-invites.ts:1009
↓ 1 callersFunctioncancelSubscription
(options: StripeOptions)
packages/stripe/src/routes.ts:1249
↓ 1 callersFunctioncanonicalizeFilterAttribute
( resourceType: SCIMResourceType, attribute: string, )
packages/scim/src/collection-query.ts:189
↓ 1 callersFunctioncanonicalizeSCIMPatchRequestBody
( body: unknown, canonicalizeValue: (path: string | undefined, value: unknown) => unknown, )
packages/scim/src/attribute-names.ts:121
↓ 1 callersFunctioncanonicalizeSCIMUserPatchPathValue
( path: string, value: unknown, )
packages/scim/src/user-patch.ts:556
↓ 1 callersFunctioncapitalize
(str: string)
docs/lib/copy-schema/utils.ts:93
↓ 1 callersFunctioncaptcha
(options: CaptchaOptions)
packages/better-auth/src/plugins/captcha/index.ts:36
↓ 1 callersFunctioncaptureCookies
(headers: Headers)
packages/api-key/src/api-key.test.ts:5469
↓ 1 callersFunctioncaptureFailure
(promise: Promise<unknown>)
packages/better-auth/src/db/get-migration.test.ts:524
↓ 1 callersFunctioncaptureRedirect
( path: string, init: Parameters<typeof client.$fetch>[1] = { method: "GET" }, )
packages/oauth-provider/src/oauth-endpoint.integration.test.ts:76
↓ 1 callersFunctioncaseInsensitiveHeaders
* Lets a custom hook read and write header names in any casing. Every access * lands on the lowercase name the request builders use, so the hook's la
packages/core/src/oauth2/token-endpoint-auth.ts:175
↓ 1 callersFunctioncatchChallenge
(resource: string | string[])
packages/oauth-provider/src/resource-challenge.test.ts:10
↓ 1 callersFunctioncborHeader
(major: number, length: number)
packages/passkey/test/webauthn.ts:6
↓ 1 callersFunctioncenteredFeatures
()
packages/better-auth/src/plugins/oauth-popup/client.ts:138
↓ 1 callersFunctionchallengeBody
( message: string, errorCode: string | undefined, description: unknown, )
packages/oauth-provider/src/resource-challenge.ts:118
↓ 1 callersFunctionchallengeHeaders
* `WWW-Authenticate` is not a CORS-safelisted response header, so browsers * hide it from cross-origin clients unless the response exposes it.
packages/oauth-provider/src/resource-challenge.ts:111
↓ 1 callersFunctionchangeEmailEmailOTP
(opts: RequiredEmailOTPOptions)
packages/better-auth/src/plugins/email-otp/routes.ts:1150
↓ 1 callersFunctionchangePassword
()
packages/better-auth/src/api/routes/update-user.test.ts:151
↓ 1 callersFunctioncheck
(code: string)
packages/better-auth/src/plugins/email-otp/email-otp.attempts.test.ts:128
↓ 1 callersFunctioncheck
( organizationId: string, action: "read" | "update", useMemoryCache: boolean, )
packages/better-auth/src/plugins/organization/has-permission.test.ts:75
↓ 1 callersFunctioncheckBotId
()
packages/better-auth/src/plugins/captcha/captcha.test.ts:927
↓ 1 callersFunctioncheckHasPath
(url: string)
packages/better-auth/src/utils/url.ts:40
↓ 1 callersFunctioncheckMissingFields
( schema: Record<string, any>, model: string, values: Record<string, any>, )
packages/drizzle-adapter/src/drizzle-adapter.ts:706
↓ 1 callersFunctioncheckMissingFields
( schema: Record<string, any>, model: string, values: Record<string, any>, )
packages/drizzle-adapter/src/relations-v2/index.ts:703
↓ 1 callersFunctioncheckNoNullable
(obj: any, path = "")
packages/better-auth/src/plugins/open-api/open-api.test.ts:772
↓ 1 callersFunctioncheckOrganizationSlug
( options: O, )
packages/better-auth/src/plugins/organization/routes/crud-org.ts:315
↓ 1 callersFunctioncheckPackageManagers
()
packages/cli/src/utils/check-package-managers.ts:9
↓ 1 callersFunctioncheckPermission
* Checks if a role has the required permission for API key operations. * Uses the organization's access control system. * * Organization owners (de
packages/api-key/src/org-authorization.ts:116
↓ 1 callersFunctioncheckRateLimit
(ip: string)
docs/lib/ai-chat/rate-limit.ts:36
↓ 1 callersFunctioncheckReleaseChangesets
(workspace: string)
packages/release-tooling/test/release-collection.test.ts:132
↓ 1 callersFunctioncheckSchema
()
packages/core/src/db/schema-check.ts:155
↓ 1 callersFunctioncheckSchemaAction
(input: unknown)
packages/cli/src/commands/check.ts:14
↓ 1 callersFunctioncheckSchemaName
( schemaName: string | undefined, databaseType: KyselyDatabaseType | null, )
packages/kysely-adapter/src/dialect.ts:59
↓ 1 callersFunctioncheckSkipProxy
( ctx: GenericEndpointContext, opts?: OAuthProxyOptions, )
packages/better-auth/src/plugins/oauth-proxy/utils.ts:68
↓ 1 callersFunctioncheckVerificationOTP
(opts: RequiredEmailOTPOptions)
packages/better-auth/src/plugins/email-otp/routes.ts:350
↓ 1 callersFunctioncheckVerificationValue
* Reads and checks the verification value without consuming it. The caller * consumes the code only after every request-level check passes, so a reje
packages/oauth-provider/src/token.ts:1517
↓ 1 callersFunctioncheckpoint
(value: SCIMLifecycleCheckpoint)
packages/test-utils/src/scim-lifecycle.ts:174
↓ 1 callersFunctionchunkCookie
* Split a cookie value into chunks if needed
packages/better-auth/src/cookies/session-store.ts:84
↓ 1 callersFunctionclaimFromTransaction
(tx: PrismaClient)
packages/prisma-adapter/src/prisma-adapter.ts:756
↓ 1 callersFunctionclaimFromTransaction
(trx: any)
packages/kysely-adapter/src/kysely-adapter.ts:939
↓ 1 callersFunctionclaimFromTransaction
(tx: DB)
packages/drizzle-adapter/src/drizzle-adapter.ts:1088
↓ 1 callersFunctionclaimFromTransaction
(tx: DB)
packages/drizzle-adapter/src/relations-v2/index.ts:1020
↓ 1 callersFunctionclaimUsageInDatabase
* Atomically consume quota and a rate-limit slot against the database row, the * source of truth for `database` and `secondary-storage` + `fallbackTo
packages/api-key/src/routes/verify-api-key.ts:184
↓ 1 callersFunctionclaimUsageInSecondaryStorage
* Secondary-storage-only mode has no database row to guard, so quota and * rate-limit consumption stays a read-modify-write merge over the serialized
packages/api-key/src/routes/verify-api-key.ts:386
↓ 1 callersFunctionclassifyDomain
(filePath: string)
packages/release-tooling/src/change-classifier.ts:153
↓ 1 callersFunctionclassifyEntry
( prInfo: PRInfo | null, scope: string | undefined, files: string[], )
packages/release-tooling/src/release-notes/collect.ts:191
↓ 1 callersFunctionclassifyIPv6
* Classify an expanded, full-form, lowercase IPv6 address (no IPv4-mapped * input, those are unmapped to IPv4 before reaching here). * * An address
packages/core/src/utils/host.ts:242
↓ 1 callersFunctioncleanDoubleSlashes
(input: string = "")
packages/core/src/social-providers/gitlab.ts:60
↓ 1 callersFunctioncleanNestedObjects
(value: any)
packages/cli/src/commands/init/utility/plugin.ts:86
↓ 1 callersFunctioncleanup
()
packages/test-utils/src/adapter/test-adapter.ts:136
↓ 1 callersFunctioncleanup
()
packages/better-auth/src/test-utils/test-instance.ts:204
↓ 1 callersFunctioncleanupCreatedRows
()
packages/test-utils/src/adapter/create-test-suite.ts:382
↓ 1 callersFunctioncleanupDatabase
()
e2e/adapter/test/kysely-adapter/adapter.kysely.pg.test.ts:32
↓ 1 callersFunctioncleanupLockIdentifier
(userId: string)
packages/better-auth/src/db/revoke-unproven-account-access.ts:9
↓ 1 callersFunctioncleanupRow
( _model: string, row: TestRow, )
packages/test-utils/src/adapter/cleanup.test.ts:15
↓ 1 callersFunctionclearProfileSource
( database: DBTransactionAdapter, subject: SCIMSubject, scimUserId: string, now: Date, )
packages/scim/src/identity.ts:265
↓ 1 callersFunctionclearSchemaCache
()
e2e/adapter/test/drizzle-adapter/generate-schema.ts:96
↓ 1 callersFunctionclearSchemaCache
()
e2e/adapter/test/drizzle-v2-relations-adapter/generate-schema.ts:102
← previousnext →1,901–2,000 of 6,486, ranked by callers