MCPcopy Create free account

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

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

↓ 1 callersFunctionacquireSCIMGroupMutationLocks
( database: DBTransactionAdapter, connection: SCIMConnection, groupIds: readonly string[], )
packages/scim/src/group-state.ts:108
↓ 1 callersFunctionacquireUserLink
( auth: ReturnType<typeof createIdentityFixture>["auth"], reference: SCIMUserExternalIdReference, )
packages/scim/src/scim-identity-resolution.test.ts:130
↓ 1 callersFunctionacsEndpoint
(options?: SSOOptions)
packages/sso/src/routes/sso.ts:2035
↓ 1 callersFunctionactionReferences
(job: WorkflowJob)
packages/release-tooling/test/release-workflows.test.ts:91
↓ 1 callersFunctionactiveHandler
(_req, res)
packages/better-auth/src/test-utils/http-test-instance.ts:76
↓ 1 callersFunctionadapterFor
(client: object, options: BetterAuthOptions = {})
packages/prisma-adapter/src/schema-check.test.ts:161
↓ 1 callersFunctionadapterFor
(schema: Record<string, unknown>, options = {})
packages/drizzle-adapter/src/schema-check.test.ts:107
↓ 1 callersFunctionadd
(value: string, createdAgo: number, expiresIn: number)
packages/better-auth/src/db/internal-adapter.test.ts:431
↓ 1 callersFunctionaddCloudflareVirtualModules
(aliases: Record<string, string>)
packages/cli/src/utils/cloudflare-virtual-modules.ts:103
↓ 1 callersFunctionaddCredential
( instance: Awaited<ReturnType<typeof createDynamicInstance>>, input: { token: string; connectionId: str
packages/scim/src/scim-dynamic-authentication.test.ts:130
↓ 1 callersFunctionaddEmails
(state: SCIMUserPatchState, value: unknown)
packages/scim/src/user-patch.ts:275
↓ 1 callersFunctionaddMember
( userId: string, organizationId: string, role: "member" | "admin" | "owner", headers: Headers,
packages/sso/src/providers.test.ts:431
↓ 1 callersFunctionaddMember
()
packages/test-utils/src/scim-lifecycle.ts:347
↓ 1 callersFunctionaddMember
(option: O)
packages/better-auth/src/plugins/organization/routes/crud-members.ts:45
↓ 1 callersFunctionaddNullType
(schema: OpenAPISchema)
packages/better-auth/src/plugins/open-api/generator.ts:184
↓ 1 callersFunctionaddNullableTierColumn
(db: DatabaseSync)
packages/better-auth/src/db/get-migration.test.ts:510
↓ 1 callersFunctionaddReplacement
( replacements: Replacement[], content: string, start: number, end: number, href: string, scopedHref: st
docs/lib/markdown-links.ts:15
↓ 1 callersFunctionaddSvelteKitVirtualModules
(aliases: Record<string, string>)
packages/cli/src/utils/sveltekit-virtual-modules.ts:34
↓ 1 callersFunctionaddTeamMember
(options: O)
packages/better-auth/src/plugins/organization/routes/crud-team.ts:1127
↓ 1 callersFunctionaddToRemoveQueue
(toastId: string)
demo/nextjs/hooks/use-toast.ts:58
↓ 1 callersFunctionaddUser
(groupId: string)
packages/scim/src/scim-group-patch-delta.test.ts:381
↓ 1 callersFunctionadminGrantCount
()
packages/scim/src/scim-read-limits.test.ts:592
↓ 1 callersFunctionadminGrantCountOf
(scimUserId: string)
packages/scim/src/scim-read-limits.test.ts:279
↓ 1 callersFunctionadminUpdateUser
(opts: AdminOptions)
packages/better-auth/src/plugins/admin/routes.ts:511
↓ 1 callersFunctionafter
(session)
packages/sso/src/index.ts:393
↓ 1 callersFunctionafterUpdateStripeOrg
(data: { organization: (Organization & WithStripeCustomerId) | null; user: User; })
packages/stripe/src/index.ts:98
↓ 1 callersFunctionallowBreakAfterUnderscore
* Error codes like `account_already_linked_to_different_user` have no spaces, * so give them a break opportunity after each `_` instead of overflowin
docs/app/api/og/route.tsx:38
↓ 1 callersFunctionallowLanOrigin
(url: URL)
packages/oauth-provider/src/insecure-redirect-uri.test.ts:14
↓ 1 callersFunctionallowLocalhostSubdomain
( uri: string, registeredUris: readonly string[], defaultResult: boolean, )
packages/oauth-provider/src/authorize.test.ts:1676
↓ 1 callersFunctionanswer
(fetch: JwksFetch)
packages/oauth-provider/src/utils/client-assertion.ts:312
↓ 1 callersFunctionanswer
(questions: any, cancelWhen: (q: any) => boolean)
packages/cli/test/init.test.ts:1534
↓ 1 callersFunctionanswer
()
e2e/smoke/test/fixtures/cloudflare/test/verification-lock.test.ts:11
↓ 1 callersFunctionanswer
()
e2e/smoke/test/fixtures/cloudflare/test/plugin-retry.test.ts:13
↓ 1 callersFunctionapiKeySchema
({ defaultRateLimitMax, defaultTimeWindow, }: { defaultTimeWindow: number; defaultRateLimitMax: number; })
packages/api-key/src/schema.ts:4
↓ 1 callersFunctionappTokenPermissions
(step: WorkflowStep)
packages/release-tooling/test/release-workflows.test.ts:95
↓ 1 callersFunctionappendProtectedResource
( resources: Array<string | OAuthResourceInput> | undefined, resource: string, )
packages/mcp/src/plugin.ts:62
↓ 1 callersFunctionappendResourceIdentifier
( resources: readonly string[] | undefined, resource: string, )
packages/mcp/src/plugin.ts:78
↓ 1 callersFunctionapplyAttribute
( op: "add" | "remove" | "replace", path: string, value: unknown, )
packages/scim/src/group-provisioning.ts:382
↓ 1 callersFunctionapplyAttribute
( op: "add" | "remove" | "replace", path: string, value: unknown, )
packages/scim/src/user-patch.ts:1103
↓ 1 callersFunctionapplyBackchannelLogoutPlan
* Apply a prepared logout plan after the session deletion succeeds. Core runs * `session.delete.after` after the row is consumed and, for transaction
packages/oauth-provider/src/logout.ts:223
↓ 1 callersFunctionapplyCookieResponse
( plugin: ReturnType<typeof expoClient>, setCookie: string, )
packages/expo/test/expo.test.ts:1053
↓ 1 callersFunctionapplyGenericSCIMUserAttributePatch
( document: Record<string, unknown>, op: "add" | "remove" | "replace", path: string, value: unknown, )
packages/scim/src/user-patch.ts:911
↓ 1 callersFunctionapplyGroupPatch
( group: SCIMGroup, currentMemberIds: string[], operations: z.infer<typeof patchSCIMGroupBodySchema>["Opera
packages/scim/src/group-provisioning.ts:369
↓ 1 callersFunctionapplyIncrementalGroupMembershipPatch
( adapter: GroupMembershipAdapter, input: { connectionId: string; groupId: string; patch: IncrementalM
packages/scim/src/group-provisioning.ts:548
↓ 1 callersFunctionapplyRateLimitToSnapshot
* Translate a rate-limit decision into a counter snapshot for the * secondary-storage merge write. Denials throw before any write.
packages/api-key/src/routes/verify-api-key.ts:456
↓ 1 callersFunctionapplyRefreshExtraParams
( body: URLSearchParams, extraParams: Record<string, string> | undefined, )
packages/core/src/oauth2/refresh-access-token.ts:86
↓ 1 callersFunctionapplyReleaseRewrites
( manifestPath: string, rewritesPath: string, outputPath: string, )
packages/release-tooling/src/release-notes/render.ts:317
↓ 1 callersFunctionapplySCIMMultiValuePatch
( container: Record<string, unknown>, resolved: ResolvedSCIMPatchPath, op: "add" | "remove" | "replace", v
packages/scim/src/user-patch.ts:742
↓ 1 callersFunctionapplySCIMUserPatch
( user: SCIMUser, operations: z.infer<typeof patchSCIMUserBodySchema>["Operations"], )
packages/scim/src/user-patch.ts:1081
↓ 1 callersFunctionapplySetCookie
(headers: Headers, responseHeaders: Headers)
packages/better-auth/src/plugins/two-factor/two-factor.test.ts:2269
↓ 1 callersFunctionapplySortToRecords
( records: any[], sortBy: { field: string; direction: "asc" | "desc" } | undefined, modelKey: s
packages/memory-adapter/src/memory-adapter.ts:188
↓ 1 callersFunctionapplySortingAndPagination
* Apply sorting and pagination to an array of API keys in memory * Used for secondary storage mode where we can't rely on database operations
packages/api-key/src/adapter.ts:578
↓ 1 callersFunctionapplyUserInputFieldsToRequestBody
( path: string, requestBody: OpenAPIRequestBody | undefined, options: BetterAuthOptions, )
packages/better-auth/src/plugins/open-api/generator.ts:528
↓ 1 callersFunctionapprovedDeviceCode
Drives the device authorization request and user approval, returning the device code.
packages/oauth-provider/src/device-code.test.ts:299
↓ 1 callersFunctionareMembershipGroupsLocked
( memberships: readonly SCIMGroupMember[], lockedGroups: readonly SCIMGroup[], )
packages/scim/src/user-provisioning.ts:111
↓ 1 callersFunctionareSchemaMembersCompatible
( left: boolean | OpenAPISchema | undefined, right: boolean | OpenAPISchema | undefined, )
packages/better-auth/src/plugins/open-api/generator.ts:366
↓ 1 callersFunctionasBunLikeDatabase
* Minimal stand-in for a `bun:sqlite` `Database`. The Vitest runner cannot * import `bun:sqlite`, so the prepared-statement surface that * `BunSqlit
packages/kysely-adapter/src/sqlite-dialect-mutations.test.ts:33
↓ 1 callersFunctionasBunLikeDatabase
(db: DatabaseSync)
packages/kysely-adapter/src/sqlite-introspector.test.ts:23
↓ 1 callersFunctionasShim
(ctx: unknown)
packages/better-auth/src/plugins/jwt/sign-overrides.test.ts:19
↓ 1 callersFunctionasShim
(ctx: unknown)
packages/better-auth/src/plugins/jwt/multi-alg.test.ts:15
↓ 1 callersFunctionasZodSchema
(schema: unknown)
packages/better-auth/src/plugins/open-api/generator.ts:158
↓ 1 callersFunctionassertAdvertisedAuthMethodsSupported
( opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/extensions.ts:205
↓ 1 callersFunctionassertClientDiscoveryOwnership
( client: SchemaClient<Scope[]> | undefined, clientDiscoveryId: string, )
packages/oauth-provider/src/register.ts:1232
↓ 1 callersFunctionassertClientLinkedToResources
* Throws `invalid_target` if the client isn't linked to every resource via * the `oauthClientResource` join table. Issues one `findMany` per call. *
packages/oauth-provider/src/resources.ts:523
↓ 1 callersFunctionassertCompleteManualClientAssertion
(body: URLSearchParams)
packages/core/src/oauth2/token-endpoint-auth.ts:162
↓ 1 callersFunctionassertConnectionBinding
( binding: SCIMConnectionBinding, connection: SCIMConnection, )
packages/scim/src/connection-authentication.ts:144
↓ 1 callersFunctionassertConnectionUserAvailable
( adapter: Pick<DBAdapter, "findOne">, connectionId: string, userId: string, )
packages/scim/src/user-provisioning.ts:428
↓ 1 callersFunctionassertContentDoesNotInclude
( fileName: string, content: string, unexpectedContents: Iterable<string>, )
e2e/smoke/test/cloudflare.spec.ts:13
↓ 1 callersFunctionassertDynamicRegistrationResourcesAllowed
( opts: OAuthOptions<Scope[]>, requestedResources: readonly string[], )
packages/oauth-provider/src/register.ts:243
↓ 1 callersFunctionassertExistingTableIndexFits
({ columnBounds, dbType, existingColumns, fields, indexes, index, table, }: { columnBounds: ReadonlyMa
packages/better-auth/src/db/get-migration.ts:445
↓ 1 callersFunctionassertExtensionClientAssertionType
(assertionType: string)
packages/oauth-provider/src/extensions.ts:77
↓ 1 callersFunctionassertExtensionGrantType
(grantType: string)
packages/oauth-provider/src/extensions.ts:65
↓ 1 callersFunctionassertExtensionTokenEndpointAuthMethod
(method: string)
packages/oauth-provider/src/extensions.ts:69
↓ 1 callersFunctionassertFutureExpiry
(expiresAt: Date)
packages/scim/src/managed-connections.ts:258
↓ 1 callersFunctionassertGrantFieldsAreAdditional
( grant: DeviceAuthorizationGrant | undefined, )
packages/better-auth/src/plugins/device-authorization/index.ts:211
↓ 1 callersFunctionassertHasProtocol
(url: string)
packages/better-auth/src/utils/url.ts:52
↓ 1 callersFunctionassertIdentifierValid
( opts: Pick<OAuthOptions<Scope[]>, "identifierValidator">, identifier: string, )
packages/oauth-provider/src/resources.ts:113
↓ 1 callersFunctionassertNoAdditionalFieldCollisions
(options?: SSOOptions)
packages/sso/src/index.ts:217
↓ 1 callersFunctionassertNoBlockedAdditionalFieldInput
( fields: Record<string, DBFieldAttribute>, data: Record<string, unknown>, )
packages/sso/src/routes/schemas.ts:42
↓ 1 callersFunctionassertNoClientSecret
( method: "none" | "private_key_jwt", options: TokenEndpointClientOptions, body: URLSearchParams, )
packages/core/src/oauth2/token-endpoint-auth.ts:77
↓ 1 callersFunctionassertNoDuplicateAcrossExtensions
(label: string, values: string[])
packages/oauth-provider/src/extensions.ts:135
↓ 1 callersFunctionassertPublicJwk
(jwk: JWK | undefined)
packages/core/src/oauth2/dpop.ts:308
↓ 1 callersFunctionassertRotatable
( opts: OAuthOptions<Scope[]>, client: SchemaClient<Scope[]>, )
packages/oauth-provider/src/oauthClient/endpoints.ts:545
↓ 1 callersFunctionassertSCIMDemoCredentialContext
( body: { organizationId: string; credentialId: string }, path: { organizationId: string; credentialId: stri
demo/nextjs/lib/scim-demo-management.ts:178
↓ 1 callersFunctionassertSCIMDemoOrganizationManager
( database: Pick<DBAdapter<Options>, "findOne">, userId: string, organizationId: string, )
demo/nextjs/lib/scim-demo-management.ts:117
↓ 1 callersFunctionassertSupportedDpopAlgorithm
( alg: string | undefined, signingAlgorithms: readonly string[], )
packages/core/src/oauth2/dpop.ts:290
↓ 1 callersFunctionassertSupportedPrivateKeyJwtAlgorithm
( candidate: string, )
packages/core/src/oauth2/client-assertion.ts:22
↓ 1 callersFunctionassertionSignatureFailure
()
packages/sso/src/saml/assertions.ts:73
↓ 1 callersFunctionassignIndexes
(indexes: Index[])
packages/drizzle-adapter/src/relations-v2/generate-drizzle-schema.ts:293
↓ 1 callersFunctionassignIndexes
(indexes: Index[])
packages/cli/src/generators/drizzle.ts:267
↓ 1 callersFunctionasyncList
(items: T[])
packages/stripe/test/_fixtures.ts:25
↓ 1 callersFunctionatMostOnePrimary
( values: readonly T[], )
packages/scim/src/user-schemas.ts:36
↓ 1 callersFunctionattachResponseHeadersToAPIError
* Better-call's createEndpoint re-throws APIError without exposing the headers * accumulated on ctx.responseHeaders (e.g. Set-Cookie from deleteSessi
packages/core/src/api/index.ts:46
↓ 1 callersFunctionattr
(key: string)
packages/sso/src/routes/saml-pipeline.ts:601
↓ 1 callersFunctionaudienceResourceIdentifiers
* Resource identifiers in a token's audience, excluding the implicit * `/oauth2/userinfo` audience (which is not a configured resource server).
packages/oauth-provider/src/introspect.ts:78
↓ 1 callersFunctionauth0
(options: Auth0Options)
packages/better-auth/src/plugins/generic-oauth/providers/auth0.ts:33
↓ 1 callersFunctionauthServerMetadata
( ctx: GenericEndpointContext, opts?: JwtOptions, overrides?: { scopes_supported?: AuthServerMetadata["sc
packages/oauth-provider/src/metadata.ts:30
↓ 1 callersFunctionauthWith
(baseURL: string, resolvedBaseURL: string)
packages/mcp/src/require-mcp-auth.test.ts:25
↓ 1 callersFunctionauthenticate
(userVerified: boolean)
packages/passkey/src/passkey-user-verification.test.ts:51
↓ 1 callersFunctionauthorizationServer
Discovers the authorization server the way a client configured with its issuer does.
e2e/smoke/test/resource-server.spec.ts:91
← previousnext →1,801–1,900 of 6,653, ranked by callers