MCPcopy Create free account

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

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

↓ 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:41
↓ 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:7401
↓ 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:13
↓ 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:1409
↓ 1 callersFunctionresume
()
packages/expo/test/client-storage.test.ts:560
↓ 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:68
↓ 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:1732
↓ 1 callersFunctionrevoke
( token: string, token_type_hint?: "access_token" | "refresh_token", )
packages/oauth-provider/src/revoke.test.ts:778
↓ 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:262
↓ 1 callersFunctionrevokeCachedSessions
()
packages/better-auth/src/db/internal-adapter.ts:1043
↓ 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:301
↓ 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:51
↓ 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:127
↓ 1 callersFunctionrevokeRefreshToken
* Validates a refresh token in the session store.
packages/oauth-provider/src/revoke.ts:185
↓ 1 callersFunctionrevokeSession
()
packages/oauth-provider/src/backchannel-logout.test.ts:148
↓ 1 callersFunctionrevokeSessionOverHTTP
(input: { clientId?: string; rollback: boolean; sessionToken: string; trackActiveAdapterWrites?: boole
packages/oauth-provider/src/backchannel-logout.test.ts:351
↓ 1 callersFunctionrevokeTokensIssuedForAuthorizationCode
( ctx: GenericEndpointContext, authorizationCodeId: string, )
packages/oauth-provider/src/token.ts:642
↓ 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:1533
↓ 1 callersFunctionrotateClientKeysEndpoint
( ctx: GenericEndpointContext & { body: { client_assertion: string; client_assertion_type: string;
packages/oauth-provider/src/oauthClient/endpoints.ts:473
↓ 1 callersFunctionrotateClientSecretEndpoint
( ctx: GenericEndpointContext & { body: { client_id: string } }, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/oauthClient/endpoints.ts:390
↓ 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
↓ 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:1042
↓ 1 callersFunctionrpInitiatedLogoutEndpoint
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/logout.ts:890
↓ 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:509
↓ 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 callersFunctionrunInfoCommand
(args: string[] = [])
packages/cli/test/info.test.ts:12
↓ 1 callersFunctionrunInfoTextCommand
(args: string[] = [])
packages/cli/test/info.test.ts:18
↓ 1 callersFunctionrunLookup
(currentRevision: number | undefined)
packages/core/src/db/schema-check.ts:128
↓ 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:493
↓ 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:155
↓ 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 callersFunctions256Challenge
(verifier: string)
packages/oauth-provider/src/token.test.ts:768
↓ 1 callersFunctionsameConfirmation
( left: Confirmation | undefined, right: Confirmation | undefined, )
packages/oauth-provider/src/token.ts:1014
↓ 1 callersFunctionsameRefreshTokenRotationReplayRequest
( left: RefreshTokenRotationReplayRequest, right: RefreshTokenRotationReplayRequest, )
packages/oauth-provider/src/token.ts:1091
↓ 1 callersFunctionsameReplayValues
( left: string[] | undefined, right: string[] | undefined, )
packages/oauth-provider/src/token.ts:987
↓ 1 callersFunctionsamlConfig
(cert: string)
packages/sso/src/provider-lock.test.ts:58
↓ 1 callersFunctionsanitizeBetterAuthConfig
(config: any)
packages/cli/src/commands/info.ts:173
↓ 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
← previousnext →3,801–3,900 of 6,486, ranked by callers