MCPcopy Create free account

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

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

↓ 1 callersFunctionrequireOrgRole
(config: { /** Request parameter name containing the organization ID */ orgIdParam: string; /** Where to fi
packages/better-auth/src/api/middlewares/authorization.ts:92
↓ 1 callersFunctionrequirePositiveInteger
(value: number, optionName: string)
packages/cimd/src/resolver.ts:192
↓ 1 callersFunctionrequireResourceOwnership
(config: { /** Database model name (e.g., "passkey", "apiKey") */ model: string; /** Request parameter name
packages/better-auth/src/api/middlewares/authorization.ts:16
↓ 1 callersFunctionrequireStringAccessTokenClaim
( accessTokenClaims: unknown, claimName: string, )
demo/nextjs/app/api/mcp/route.ts:32
↓ 1 callersFunctionreserve
(now: number)
packages/core/src/oauth2/dpop.test.ts:348
↓ 1 callersFunctionreserve
()
packages/better-auth/src/db/internal-adapter.test.ts:2684
↓ 1 callersFunctionreserveDpopReplay
( replayStore: DpopReplayStore | undefined, reservation: DpopReplayReservation, )
packages/core/src/oauth2/dpop.ts:345
↓ 1 callersFunctionreserveSerialId
( model: string, rows: Record<string, unknown>[] | undefined, )
packages/memory-adapter/src/memory-adapter.ts:140
↓ 1 callersFunctionreserveTeamSeat
( adapter: DBTransactionAdapter, data: { teamId: string; maximumMembersPerTeam: number; }, )
packages/better-auth/src/plugins/organization/adapter.ts:89
↓ 1 callersFunctionresetDB
(retryCount: number = 0)
e2e/adapter/test/kysely-adapter/adapter.kysely.mssql.test.ts:233
↓ 1 callersFunctionresetDebugLogs
()
packages/test-utils/src/adapter/create-test-suite.ts:372
↓ 1 callersFunctionresetPassword
(newPassword: string)
packages/better-auth/src/api/routes/password.test.ts:513
↓ 1 callersFunctionresetPasswordEmailOTP
(opts: RequiredEmailOTPOptions)
packages/better-auth/src/plugins/email-otp/routes.ts:886
↓ 1 callersFunctionresetPasswordPhoneNumber
(opts: RequiredPhoneNumberOptions)
packages/better-auth/src/plugins/phone-number/routes.ts:794
↓ 1 callersFunctionresetWith
(password: string)
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:434
↓ 1 callersFunctionresetWith
(newPassword: string)
packages/better-auth/src/plugins/phone-number/phone-number.test.ts:1222
↓ 1 callersFunctionresize
()
docs/components/landing/line-field-bg.tsx:171
↓ 1 callersFunctionresize
()
docs/components/landing/halftone-bg.tsx:156
↓ 1 callersFunctionresolutionFailure
()
packages/sso/src/user-resolution.ts:60
↓ 1 callersFunctionresolveAnonymousSession
* Resolves the anonymous session being upgraded during an account-link callback. * * The anonymous session is normally read from the request cookie.
packages/better-auth/src/plugins/anonymous/index.ts:45
↓ 1 callersFunctionresolveAuthURL
(options?: BetterAuthClientOptions)
packages/better-auth/src/plugins/oauth-popup/client.ts:206
↓ 1 callersFunctionresolveCached
( cached: JSONWebKeySet, )
packages/core/src/oauth2/verify.ts:488
↓ 1 callersFunctionresolveCandidateFile
Probes a candidate as-is, with known extensions, and as a directory index.
packages/cli/src/utils/get-config.ts:143
↓ 1 callersFunctionresolveClient
(clientId: string)
packages/cimd/src/metadata-refresh.test.ts:98
↓ 1 callersFunctionresolveClientAssertionParams
({ getClientAssertion, context, }: { getClientAssertion: ClientAssertionGetter; context: ClientAssertionCo
packages/core/src/oauth2/client-assertion.ts:197
↓ 1 callersFunctionresolveClientRegistrationResources
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, requestedResources: readonly string[], )
packages/oauth-provider/src/register.ts:262
↓ 1 callersFunctionresolveColumn
(model: string, modelKey: string, w: Where)
packages/drizzle-adapter/src/relations-v2/index.ts:509
↓ 1 callersFunctionresolveConnectionAndSource
( database: Pick<DBAdapter, "findOne"> | Pick<DBTransactionAdapter, "findOne">, connectionId: string, scimU
demo/nextjs/lib/scim-demo-employee.ts:234
↓ 1 callersFunctionresolveConnectionAndSourceByOrganization
* Resolves the exact scim user by id first, then its own connection. A * scimUserId uniquely determines its connection, so an organization with * mu
demo/nextjs/lib/scim-demo-employee.ts:266
↓ 1 callersFunctionresolveCurrentURL
( ctx: GenericEndpointContext, opts?: OAuthProxyOptions, )
packages/better-auth/src/plugins/oauth-proxy/utils.ts:38
↓ 1 callersFunctionresolveDrizzleKitCli
* Finds the `drizzle-kit` CLI that is installed for a test directory, one time * per directory. * * Each test package can pin its own `drizzle-kit`
e2e/adapter/test/drizzle-adapter/push-drizzle-schema.ts:23
↓ 1 callersFunctionresolveDynamicContext
* Resolves the per-call `AuthContext` for endpoints with a dynamic `baseURL`. * * - `rawCtx.baseURL` already set: HTTP handler rehydrated upstream;
packages/better-auth/src/api/to-auth-endpoints.ts:34
↓ 1 callersFunctionresolveErrorCode
( issue: z.core.$ZodIssue, mapping: OAuthFieldErrorCode | undefined, defaultError: OAuthErrorCode, )
packages/oauth-provider/src/oauth-endpoint.ts:247
↓ 1 callersFunctionresolveFieldName
(where: Where)
packages/drizzle-adapter/src/drizzle-adapter.ts:363
↓ 1 callersFunctionresolveFieldName
(fieldName: string)
packages/core/src/db/database-index.ts:147
↓ 1 callersFunctionresolveHintClient
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, hint: string, clientId?: string, )
packages/oauth-provider/src/logout.ts:659
↓ 1 callersFunctionresolveIndexSetup
()
packages/mongo-adapter/src/mongodb-adapter.test.ts:232
↓ 1 callersFunctionresolveIntrospectionSub
* Resolves pairwise sub on an introspection payload. * Applied at the presentation layer so internal validation functions * keep real user.id (neede
packages/oauth-provider/src/introspect.ts:611
↓ 1 callersFunctionresolveMetadataFetchPolicy
( options: CimdOptions, )
packages/cimd/src/resolver.ts:201
↓ 1 callersFunctionresolveMetadataRevalidationIntervalMs
( metadataRevalidationInterval: number | string, nowMs: number, )
packages/cimd/src/resolver.ts:251
↓ 1 callersFunctionresolveMutableSCIMUserPatchPath
( path: string, )
packages/scim/src/user-patch.ts:481
↓ 1 callersFunctionresolvePrismaCli
()
e2e/adapter/test/prisma-adapter/push-prisma-schema.ts:33
↓ 1 callersFunctionresolvePublicAuthUrl
(basePath?: string)
packages/better-auth/src/client/config.ts:14
↓ 1 callersFunctionresolvePublicClient
(clientId: string)
e2e/adapter/test/adapter-factory/cimd-refresh-test-suite.ts:87
↓ 1 callersFunctionresolveRateLimitConfig
(req: Request, ctx: AuthContext)
packages/better-auth/src/api/rate-limiter/index.ts:338
↓ 1 callersFunctionresolveRefreshTokenRotationReplayRequest
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, params: { client: SchemaClient<Scope[]>; re
packages/oauth-provider/src/token.ts:1194
↓ 1 callersFunctionresolveRegistrationResponseTypes
( client: OAuthClientRegistrationMetadata, grantTypes: GrantType[], )
packages/oauth-provider/src/register.ts:96
↓ 1 callersFunctionresolveRegistrationUser
( opts: RequiredPassKeyOptions, ctx: GenericEndpointContext, )
packages/passkey/src/routes.ts:119
↓ 1 callersFunctionresolveRelationKey
({ baseModel, joinModel, relationKeys, usePlural, databaseSchema = schema, }: { baseModel: string; join
packages/drizzle-adapter/src/join-relation-key.test.ts:27
↓ 1 callersFunctionresolveRequiredInput
(options: { email?: string | undefined; password?: string | undefined; })
packages/cli/src/commands/create-admin.ts:52
↓ 1 callersFunctionresolveResourceMetadataUrl
( value: string, opts?: { resourceMetadataMappings?: Record<string, string> }, )
packages/oauth-provider/src/resource-challenge.ts:147
↓ 1 callersFunctionresolveSCIMDemoSSOUser
( input: SSOUserResolutionInput, context: SSOUserResolutionContext, )
demo/nextjs/lib/scim-demo-employee.ts:583
↓ 1 callersFunctionresolveSCIMResponseAttributePath
( resourceType: SCIMResourceType, attributePath: string, )
packages/scim/src/resource-schema-registry.ts:161
↓ 1 callersFunctionresolveSchemaOutputPath
({ cwd, output, adapterId, now = new Date(), }: { cwd: string; output: string | undefined; adapterId: s
packages/cli/src/commands/generate.ts:92
↓ 1 callersFunctionresolveSessionCacheRead
()
packages/expo/test/expo.test.ts:1478
↓ 1 callersFunctionresolveStripePrice
* Resolves a Stripe price object, either from a lookup key or by retrieving * by ID. Used to inspect `recurring.usage_type` for metered billing. * @
packages/stripe/src/routes.ts:44
↓ 1 callersFunctionresolveUrl
* Resolves a URL that may be relative or absolute
packages/oauth-provider/src/pkce-optional.test.ts:18
↓ 1 callersFunctionresolveUser
(input, context)
packages/sso/src/saml.test.ts:7459
↓ 1 callersFunctionresolveUserId
* Resolves the user id an account-token operation should act on. * * A caller reaching the server over HTTP (a request or session headers are * pre
packages/better-auth/src/api/routes/account.ts:558
↓ 1 callersFunctionresolveVerifiedPrincipal
( verified: unknown, configuredConnections: ReadonlyMap<string, SCIMConnection>, )
packages/scim/src/connection-authentication.ts:89
↓ 1 callersFunctionresolveVerifyAccessTokenOptions
( opts: | (VerifyAccessTokenAuthOpts & { verifyOptions?: JWTVerifyOptions & Required<Pick<JWTV
packages/oauth-provider/src/client-resource.ts:72
↓ 1 callersFunctionresolveWithMatchers
( specifier: string, matchers: PathsMatcher[], )
packages/cli/src/utils/get-config.ts:165
↓ 1 callersFunctionresolvesMissingOutputModule
* Detects a first-run config import of the exact schema file being generated. * Only relative imports are eligible, so unrelated packages and missing
packages/cli/src/utils/get-config.ts:347
↓ 1 callersFunctionrespondWithoutSub
(email: string, name: string)
packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts:1850
↓ 1 callersMethodresponse
* The image as a response, ready to store in cache or return to users
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:14638
↓ 1 callersFunctionresponseHeaders
( headers: Record<string, string | string[] | undefined>, )
packages/cimd/src/node.ts:92
↓ 1 callersFunctionrestoreOAuthProxyState
( ctx: GenericEndpointContext, state: string, )
packages/better-auth/src/plugins/oauth-proxy/index.ts:132
↓ 1 callersFunctionrestoreSessionCache
()
packages/expo/src/client.ts:258
↓ 1 callersFunctionrestoreSubscription
(options: StripeOptions)
packages/stripe/src/routes.ts:1413
↓ 1 callersFunctionresume
()
packages/expo/test/client-storage.test.ts:560
↓ 1 callersFunctionretireFetchesPastLease
(nowMs: number)
packages/cimd/src/resolver.ts:616
↓ 1 callersFunctionretrieveOTP
* Retrieves the plain-text OTP from a stored value. * Returns `null` if the OTP is hashed and cannot be recovered.
packages/better-auth/src/plugins/email-otp/otp-token.ts:70
↓ 1 callersFunctionretryDiscovery
(ctx: AuthContext, providerId: string)
packages/better-auth/src/plugins/generic-oauth/index.ts:605
↓ 1 callersFunctionreviewBatch
( batch: ReleaseRewriteContext, rewrites: GeneratedReleaseRewrites, name: string, generate: StructuredGene
packages/release-tooling/src/release-notes/rewrite.ts:113
↓ 1 callersFunctionreviveDates
* Recursively walk a pre-parsed object and convert ISO 8601 date strings * to Date instances. This handles the case where a Redis client (or similar)
packages/core/src/utils/json.ts:20
↓ 1 callersFunctionrevoke
(token: string, headers?: Record<string, string>)
packages/oauth-provider/src/local-jwks.test.ts:76
↓ 1 callersFunctionrevoke
(refreshToken: string)
packages/oauth-provider/src/token.test.ts:1736
↓ 1 callersFunctionrevoke
( token: string, token_type_hint?: "access_token" | "refresh_token", )
packages/oauth-provider/src/revoke.test.ts:780
↓ 1 callersFunctionrevoke
( { client, oauthClient }: TestServer, token: string, tokenTypeHint?: "access_token", )
packages/oauth-provider/src/jwt-verification-errors.test.ts:145
↓ 1 callersFunctionrevoke
()
packages/better-auth/src/api/routes/sign-up.test.ts:298
↓ 1 callersFunctionrevokeAccessToken
* We don't know the access token format so we try to validate it * as a JWT first, then as an opaque token.
packages/oauth-provider/src/revoke.ts:263
↓ 1 callersFunctionrevokeAnotherUsersSession
(vetoDeletion: boolean)
packages/better-auth/src/plugins/admin/admin.test.ts:2944
↓ 1 callersFunctionrevokeCachedSessions
()
packages/better-auth/src/db/internal-adapter.ts:564
↓ 1 callersFunctionrevokeCachedUserSessions
( userId: string, sessionReferences: readonly ActiveSessionReference[], )
packages/better-auth/src/db/internal-adapter.ts:285
↓ 1 callersFunctionrevokeCredential
(credentialId: string)
demo/nextjs/app/dashboard/scim/settings.tsx:597
↓ 1 callersFunctionrevokeEndpoint
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/revoke.ts:302
↓ 1 callersFunctionrevokeFromAnotherDevice
( options: Parameters<typeof getTestInstance>[0] = {}, beforeRevoke?: ( auth: Awaited<ReturnType<typeof
packages/better-auth/src/api/routes/session-api.test.ts:795
↓ 1 callersFunctionrevokeJwtAccessToken
* Revokes a JWT access token against the configured JWKs. * * A JWT access token is self-contained and never stored, so there is nothing to * delet
packages/oauth-provider/src/revoke.ts:52
↓ 1 callersFunctionrevokeManagedCredentialInCurrentTransaction
( database: ManagedTransactionDatabase, input: RevokeManagedCredentialInput, )
packages/scim/src/managed-connections.ts:621
↓ 1 callersFunctionrevokeOpaqueAccessToken
* Searches for an opaque access token in the database and validates it
packages/oauth-provider/src/revoke.ts:128
↓ 1 callersFunctionrevokeRefreshToken
* Validates a refresh token in the session store.
packages/oauth-provider/src/revoke.ts:186
↓ 1 callersFunctionrevokeSession
()
packages/oauth-provider/src/backchannel-logout.test.ts:150
↓ 1 callersFunctionrevokeSessionOverHTTP
(input: { clientId?: string; rollback: boolean; sessionToken: string; trackActiveAdapterWrites?: boole
packages/oauth-provider/src/backchannel-logout.test.ts:353
↓ 1 callersFunctionrevokeTokensIssuedForAuthorizationCode
( ctx: GenericEndpointContext, authorizationCodeId: string, )
packages/oauth-provider/src/token.ts:643
↓ 1 callersFunctionrevokeUserSession
(opts: AdminOptions)
packages/better-auth/src/plugins/admin/routes.ts:1457
↓ 1 callersFunctionrevokeUserSessions
(opts: AdminOptions)
packages/better-auth/src/plugins/admin/routes.ts:1536
↓ 1 callersFunctionrotateClientKeysEndpoint
( ctx: GenericEndpointContext & { body: { client_assertion: string; client_assertion_type: string;
packages/oauth-provider/src/oauthClient/endpoints.ts:483
↓ 1 callersFunctionrotateClientSecretEndpoint
( ctx: GenericEndpointContext & { body: { client_id: string } }, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/oauthClient/endpoints.ts:400
↓ 1 callersFunctionrotateManagedCredentialInCurrentTransaction
( database: ManagedTransactionDatabase, options: ResolvedManagedConnectionOptions, input: RotateManagedCred
packages/scim/src/managed-connections.ts:511
↓ 1 callersFunctionroute
(path: string, origin: string)
packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts:5807
← previousnext →3,901–4,000 of 6,712, ranked by callers