MCPcopy Create free account

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

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

↓ 1 callersFunctionroute
(request: Request)
e2e/smoke/test/fixtures/resource-server/resource-server.ts:20
↓ 1 callersFunctionrouteFetch
(input, init)
packages/cimd/src/mcp-e2e.test.ts:322
↓ 1 callersFunctionrowChanged
* Whether the transaction mutated a row, comparing its pre-transaction * snapshot to its post-transaction state. Rows hold scalar columns and * adap
packages/memory-adapter/src/memory-adapter.ts:117
↓ 1 callersFunctionrows
()
e2e/adapter/test/drizzle-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:84
↓ 1 callersFunctionrows
()
e2e/adapter/test/drizzle-v2-relations-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:85
↓ 1 callersFunctionrpInitiatedLogoutConfirmationEndpoint
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/logout.ts:1049
↓ 1 callersFunctionrpInitiatedLogoutEndpoint
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/logout.ts:897
↓ 1 callersFunctionrun
()
packages/better-auth/src/api/to-auth-endpoints.ts:92
↓ 1 callersFunctionrunAfterHooks
( context: InternalContext, hooks: Hook[], endpoint: Endpoint, operationId: string, )
packages/better-auth/src/api/dispatch.ts:245
↓ 1 callersFunctionrunBeforeHooks
( context: InternalContext, hooks: Hook[], endpoint: Endpoint, operationId: string, )
packages/better-auth/src/api/dispatch.ts:160
↓ 1 callersFunctionrunBigintToggleTest
( fromBigint: boolean, toBigint: boolean, )
packages/cli/test/generate.test.ts:781
↓ 1 callersFunctionrunCli
(args: string[], cwd: string)
packages/cli/test/exit-codes.test.ts:60
↓ 1 callersFunctionrunCli
(args: string[], cwd: string)
packages/cli/test/migrate-cli.test.ts:11
↓ 1 callersFunctionrunClient
( page: Page, fn: ({ client }: { client: Window["client"] }) => R, )
e2e/integration/solid-vinxi/e2e/utils.ts:7
↓ 1 callersFunctionrunCursorProjectFlow
()
packages/cli/test/ai.test.ts:30
↓ 1 callersFunctionrunLookup
(currentRevision: number | undefined)
packages/core/src/db/schema-check.ts:146
↓ 1 callersFunctionrunManagedMutationTransaction
( baseAdapter: DBAdapter, mutation: (database: ManagedTransactionDatabase) => Promise<Result>, )
packages/scim/src/managed-connections.ts:426
↓ 1 callersFunctionrunMigrations
()
packages/better-auth/src/context/create-context.ts:394
↓ 1 callersFunctionrunOAuth2Authorize
( ctx: GenericEndpointContext, settings?: AuthorizeEndpointSettings, )
packages/oauth-provider/src/oauth.ts:503
↓ 1 callersFunctionrunOktaRecipeStep
( key: OktaLocalRecipeStepKey, summary: string, run: () => Promise<Result>, )
demo/nextjs/app/dashboard/scim/settings.tsx:1193
↓ 1 callersFunctionrunOpenCodeFlow
()
packages/cli/test/ai.test.ts:43
↓ 1 callersFunctionrunPendingHooks
(unhandledErrors: "throw" | "log")
packages/core/src/context/transaction.ts:165
↓ 1 callersFunctionrunPluginInit
(context: AuthContext)
packages/better-auth/src/context/helpers.ts:23
↓ 1 callersFunctionrunPopupFlow
()
packages/better-auth/src/plugins/oauth-popup/oauth-popup.test.ts:95
↓ 1 callersFunctionrunPrompt
( moment: ReturnType<typeof notification>, fedCM?: boolean, )
packages/better-auth/src/plugins/one-tap/one-tap.test.ts:1114
↓ 1 callersFunctionrunRecipeStep
( key: EntraLocalRecipeStepKey, summary: string, run: () => Promise<Result>, )
demo/nextjs/app/dashboard/scim/settings.tsx:767
↓ 1 callersFunctionrunRegistration
( authenticatorSelection?: PasskeyOptions["authenticatorSelection"], )
packages/passkey/src/passkey.test.ts:1813
↓ 1 callersFunctionrunReleaseNotes
( operation: ReleaseNotesOperation, collection?: ReleaseCollection, )
packages/release-tooling/src/release-notes/pipeline.ts:143
↓ 1 callersFunctionrunSchemaCheck
(options: unknown)
packages/cli/src/commands/check.ts:103
↓ 1 callersFunctionrunStep
(key: LifecycleStepKey)
demo/nextjs/app/dashboard/scim/lifecycle-walkthrough.tsx:433
↓ 1 callersFunctionrunWithPluginOptions
()
packages/cli/test/info.test.ts:512
↓ 1 callersFunctions256Challenge
(verifier: string)
packages/oauth-provider/src/token.test.ts:770
↓ 1 callersFunctionsameConfirmation
( left: Confirmation | undefined, right: Confirmation | undefined, )
packages/oauth-provider/src/token.ts:1019
↓ 1 callersFunctionsameRefreshTokenRotationReplayRequest
( left: RefreshTokenRotationReplayRequest, right: RefreshTokenRotationReplayRequest, )
packages/oauth-provider/src/token.ts:1096
↓ 1 callersFunctionsameReplayValues
( left: string[] | undefined, right: string[] | undefined, )
packages/oauth-provider/src/token.ts:992
↓ 1 callersFunctionsamlConfig
(cert: string)
packages/sso/src/provider-lock.test.ts:58
↓ 1 callersFunctionsanitizeBetterAuthConfig
(config: any)
packages/cli/src/commands/info.ts:248
↓ 1 callersFunctionsanitizeSigningCerts
(config: SAMLConfig)
packages/sso/src/routes/providers.ts:419
↓ 1 callersMethodsaveUser
(user: User)
packages/better-auth/src/plugins/test-utils/types.ts:42
↓ 1 callersFunctionsavedMapping
()
packages/sso/src/providers.test.ts:2115
↓ 1 callersFunctionschemaAcceptsUndefined
(zodType: z.ZodType<unknown>)
packages/better-auth/src/plugins/open-api/generator.ts:281
↓ 1 callersFunctionschemaAllowsNull
(schema: OpenAPISchema)
packages/better-auth/src/plugins/open-api/generator.ts:357
↓ 1 callersFunctionschemaGrant
( deviceCodeSchemaFields: Record<string, DBFieldAttribute>, )
packages/better-auth/src/plugins/device-authorization/schema.test.ts:9
↓ 1 callersFunctionschemaSearchPath
( db: Kysely<unknown>, dbType: KyselyDatabaseType | undefined, )
packages/kysely-adapter/src/schema-check.ts:184
↓ 1 callersFunctionscimRequest
( request: APIRequestContext, baseURL: string, token: string, input: { method: "GET" | "POST" | "PATCH";
e2e/integration/nextjs-demo/e2e/scim-demo.spec.ts:271
↓ 1 callersFunctionscimSingleValueScalar
* Unwrap a single-element array before validation. Microsoft Entra sometimes * wraps a single-valued attribute's PATCH replace value in an array.
packages/scim/src/user-schemas.ts:29
↓ 1 callersFunctionscimUserPatchChangesState
( user: SCIMUser, state: SCIMUserPatchState, )
packages/scim/src/user-patch.ts:92
↓ 1 callersFunctionscope
(href: string | undefined)
docs/app/docs/[[...slug]]/page.tsx:64
↓ 1 callersFunctionscopeAttributes
(cookie: CookieAttributes | undefined)
packages/better-auth/src/plugins/last-login-method/custom-prefix.test.ts:34
↓ 1 callersFunctionsearchIndex
(entries: SearchEntry[], query: string)
docs/lib/ai-chat/route.ts:77
↓ 1 callersFunctionsecretsMatch
(left: string, right: string)
demo/nextjs/lib/scim-demo-oidc.ts:562
↓ 1 callersFunctionseed
(ids: string[])
e2e/adapter/test/drizzle-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:77
↓ 1 callersFunctionseed
(ids: string[])
e2e/adapter/test/drizzle-v2-relations-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:78
↓ 1 callersFunctionseedAccountWrittenBy17
(database: DatabaseSync)
packages/better-auth/src/db/account-schema-compat.test.ts:33
↓ 1 callersFunctionseedAdminGroups
(scimUserId: string, count: number)
packages/scim/src/scim-read-limits.test.ts:189
↓ 1 callersFunctionseedAuthRows
(sqliteDb: InstanceType<typeof Database>, nowTs: number)
e2e/adapter/test/drizzle-adapter/adapter.drizzle.use-plural-joins-relationname.test.ts:190
↓ 1 callersFunctionseedClient
( ctx: Awaited<ReturnType<typeof bootProvider>>["ctx"], clientId: string, )
packages/oauth-provider/src/validation-flow.test.ts:531
↓ 1 callersFunctionseedClient
( instance: Awaited<ReturnType<typeof boot>>, clientId: string, )
packages/oauth-provider/src/oauthResource/endpoints.test.ts:268
↓ 1 callersFunctionseedClientLink
( ctx: Awaited<ReturnType<typeof bootProvider>>["ctx"], clientId: string, resourceId: string, )
packages/oauth-provider/src/validation-flow.test.ts:546
↓ 1 callersFunctionseedKeySet
()
packages/core/src/oauth2/verify.test.ts:1548
↓ 1 callersFunctionseedTeamMember
(teamId: string)
packages/better-auth/src/plugins/organization/team.test.ts:1884
↓ 1 callersFunctionseedWidget
( adapter: DBAdapter<BetterAuthOptions>, id: string, name: string, )
packages/memory-adapter/src/memory-adapter.test.ts:36
↓ 1 callersFunctionseg
(o: unknown)
packages/core/src/oauth2/verify-id-token.test.ts:89
↓ 1 callersFunctionselect
(options: { message: string; options: Array<{ value: string; label: string }>; initialValue?: string; })
packages/cli/src/commands/init/index.ts:69
↓ 1 callersFunctionselectContext
( context: ReleaseRewriteContext, ids: string[], )
packages/release-tooling/src/release-notes/rewrite.ts:100
↓ 1 callersFunctionselected
( ctx: GenericEndpointContext, authorize: AuthorizeEndpointCaller<Result>, )
packages/oauth-provider/src/continue.ts:36
↓ 1 callersFunctionsend
( path: string, clientId: string, basic: boolean, )
packages/oauth-provider/src/token.test.ts:6645
↓ 1 callersFunctionsend
(init: { body?: unknown; headers?: Record<string, string>; })
packages/oauth-provider/src/client.test.ts:29
↓ 1 callersFunctionsend
()
packages/better-auth/src/oauth2/link-account.ts:745
↓ 1 callersFunctionsendPhoneNumberOTP
(opts: RequiredPhoneNumberOptions)
packages/better-auth/src/plugins/phone-number/routes.ts:238
↓ 1 callersFunctionsendVerificationEmail
()
packages/better-auth/src/api/routes/update-user.test.ts:1255
↓ 1 callersFunctionsendVerificationEmail
(data, request)
packages/better-auth/src/plugins/email-otp/index.ts:53
↓ 1 callersFunctionsendVerificationEmailFn
( ctx: GenericEndpointContext, user: User, )
packages/better-auth/src/api/routes/email-verification.ts:48
↓ 1 callersFunctionsendVerificationOTP
({ email, otp: _otp, type })
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:24
↓ 1 callersFunctionsendVerificationOTP
(opts: RequiredEmailOTPOptions)
packages/better-auth/src/plugins/email-otp/routes.ts:83
↓ 1 callersFunctionsendVerificationOtpFn
(data: SendVerificationOtpData)
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:1875
↓ 1 callersFunctionsentIdentifiers
* Compiles a select of `columns` from `table` and reads the identifiers back * out of the transformed query, including the schema a plugin such as *
packages/kysely-adapter/src/schema-check.ts:74
↓ 1 callersFunctionserializeApiKey
* Serialize API key for storage
packages/api-key/src/adapter.ts:148
↓ 1 callersFunctionserializeCanonical
(value: unknown)
packages/sso/src/provider-reference.ts:17
↓ 1 callersFunctionserializeChallengeScopes
(scopes: readonly string[] | undefined)
packages/oauth-provider/src/resource-challenge.ts:21
↓ 1 callersFunctionserializeChunkMarker
(marker: ChunkMarker)
packages/expo/src/client-storage.ts:131
↓ 1 callersFunctionserializeID
({ field, value, model, }: { field: string; value: any; model: string; })
packages/mongo-adapter/src/mongodb-adapter.ts:443
↓ 1 callersFunctionserializeSCIMDemoEmployeePortalCookie
(token: string)
demo/nextjs/lib/scim-demo-employee.ts:655
↓ 1 callersFunctionserveStaleKeys
(keys: JwksCacheEntry, reason: string)
packages/oauth-provider/src/utils/client-assertion.ts:636
↓ 1 callersFunctionserveStoredClient
( storedClient: SchemaClient<Scope[]>, reason: string, )
packages/cimd/src/resolver.ts:958
↓ 1 callersFunctionserverError
(code: number, errmsg = `server error ${code}`)
packages/mongo-adapter/src/mongodb-adapter.test.ts:859
↓ 1 callersFunctionsessionToken
(setCookie: string)
packages/better-auth/src/oauth2/link-account.test.ts:2546
↓ 1 callersFunctionset
(value)
packages/core/src/context/request-state.ts:88
↓ 1 callersFunctionsetActiveOrganization
( options: O, )
packages/better-auth/src/plugins/organization/routes/crud-org.ts:860
↓ 1 callersFunctionsetActiveTeam
(options: O)
packages/better-auth/src/plugins/organization/routes/crud-team.ts:713
↓ 1 callersFunctionsetAllowedScopes
(allowedScopes: string[] | null)
packages/oauth-provider/src/token.test.ts:2234
↓ 1 callersFunctionsetClientCredentialsScopes
(clientId: string)
packages/oauth-provider/src/oauthClient/endpoints-discovered-client.test.ts:75
↓ 1 callersFunctionsetClientSecretBasicAuth
({ headers, options, clientId, body, }: { headers: Record<string, string>; options: TokenEndpointClientO
packages/core/src/oauth2/token-endpoint-auth.ts:138
↓ 1 callersFunctionsetClientSecretPostAuth
({ body, options, clientId, requireClientSecret, }: { body: URLSearchParams; options: TokenEndpointClien
packages/core/src/oauth2/token-endpoint-auth.ts:117
↓ 1 callersFunctionsetEffectiveField
( field: ClientAuthenticationField, value: unknown, )
packages/oauth-provider/src/utils/index.ts:735
↓ 1 callersMethodsetFocused
(focused: boolean)
packages/expo/src/focus-manager.ts:18
↓ 1 callersMethodsetFocused
(focused: boolean)
packages/better-auth/src/client/focus-manager.ts:21
↓ 1 callersFunctionsetFormattedName
( state: SCIMUserPatchState, formattedName: string, )
packages/scim/src/user-patch.ts:222
↓ 1 callersFunctionsetJwksCache
( cache: JwksCache, cacheKey: string, jwks: JSONWebKeySet, fetchedAt: number, sequence: number, )
packages/oauth-provider/src/utils/client-assertion.ts:199
↓ 1 callersFunctionsetLogoutConfirmationState
( ctx: GenericEndpointContext, sessionId?: string, confirmation: LogoutConfirmationContext = {}, )
packages/oauth-provider/src/logout.ts:482
← previousnext →4,001–4,100 of 6,712, ranked by callers