MCPcopy Create free account

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

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

↓ 1 callersFunctiondefaultResolveMethod
(ctx: GenericEndpointContext)
packages/better-auth/src/plugins/last-login-method/index.ts:75
↓ 1 callersFunctiondeferred
()
packages/cimd/src/fetch-governor.test.ts:37
↓ 1 callersFunctiondeferred
()
packages/cimd/src/coalescing.test.ts:16
↓ 1 callersFunctiondefineExpoClientPlugin
( plugin: Plugin, )
packages/expo/src/client.ts:76
↓ 1 callersFunctiondelayedDatabase
(database: D1Database, delay: number)
e2e/smoke/test/fixtures/cloudflare/src/schema-check.ts:19
↓ 1 callersMethoddeleteAccounts
(userId: string)
packages/core/src/types/context.ts:195
↓ 1 callersFunctiondeleteAllExpiredApiKeysEndpoint
({ deleteAllExpiredApiKeys, }: { deleteAllExpiredApiKeys( ctx: AuthContext, byPassLastCheckTime?: boolea
packages/api-key/src/routes/delete-all-expired-api-keys.ts:4
↓ 1 callersFunctiondeleteApiKey
({ configurations, schema, deleteAllExpiredApiKeys, }: { configurations: PredefinedApiKeyOptions[]; schem
packages/api-key/src/routes/delete-api-key.ts:30
↓ 1 callersFunctiondeleteCachedUserSessions
( userId: string, sessionReferences: readonly ActiveSessionReference[], revokedAt: number, )
packages/better-auth/src/db/internal-adapter.ts:215
↓ 1 callersFunctiondeleteClientEndpoint
( ctx: GenericEndpointContext & { body: { client_id: string } }, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/oauthClient/endpoints.ts:145
↓ 1 callersFunctiondeleteConsentEndpoint
( ctx: GenericEndpointContext & { body: { id: string } }, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/oauthConsent/endpoints.ts:68
↓ 1 callersFunctiondeleteExhaustedKey
()
packages/api-key/src/routes/verify-api-key.ts:135
↓ 1 callersFunctiondeleteExpiredKey
()
packages/api-key/src/routes/verify-api-key.ts:85
↓ 1 callersFunctiondeleteExpiredRows
(now: number)
packages/better-auth/src/api/rate-limiter/index.ts:230
↓ 1 callersFunctiondeleteIssuedTokens
( model: "oauthAccessToken" | "oauthRefreshToken", )
packages/oauth-provider/src/token.ts:647
↓ 1 callersFunctiondeleteLinkedAccessTokens
()
packages/oauth-provider/src/token.ts:621
↓ 1 callersFunctiondeleteOrgRole
(options: O)
packages/better-auth/src/plugins/organization/routes/crud-access-control.ts:306
↓ 1 callersFunctiondeleteOrganization
( options: O, )
packages/better-auth/src/plugins/organization/routes/crud-org.ts:522
↓ 1 callersFunctiondeleteResourceEndpoint
( ctx: GenericEndpointContext & { params: { identifier: string } }, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/oauthResource/endpoints.ts:223
↓ 1 callersFunctiondeleteSCIMGroup
( authMiddleware: SCIMConnectionMiddleware, projection: SCIMProjectionCoordinator, )
packages/scim/src/group-provisioning.ts:1609
↓ 1 callersFunctiondeleteSCIMUser
(userId: string)
packages/scim/src/scim-sso-http-e2e.test.ts:279
↓ 1 callersFunctiondeleteSCIMUser
( authMiddleware: SCIMConnectionMiddleware, identity: SCIMIdentityCoordinator, projection: SCIMProjectionCo
packages/scim/src/user-provisioning.ts:1255
↓ 1 callersFunctiondeleteSSOProvider
(options?: SSOOptions)
packages/sso/src/routes/providers.ts:1082
↓ 1 callersFunctiondeleteSelectedRow
(db: any, row: any)
packages/kysely-adapter/src/kysely-adapter.ts:902
↓ 1 callersMethoddeleteSessions
* Delete sessions by their session tokens.
packages/core/src/types/context.ts:212
↓ 1 callersFunctiondeleteUserWithToken
* Consumes a delete-account token issued to `user` and deletes the user. * Runs on the caller's context so the expired cookies reach its response.
packages/better-auth/src/api/routes/update-user.ts:398
↓ 1 callersFunctiondeleteWithHooks
( where: Where[], model: BaseModelNames, customDeleteFn?: | { fn: (where: Where[]) => void | Pro
packages/better-auth/src/db/with-hooks.ts:254
↓ 1 callersFunctiondeleteWithReturning
(query: any)
packages/kysely-adapter/src/kysely-adapter.ts:924
↓ 1 callersFunctiondeliver
()
packages/stripe/test/webhook.test.ts:544
↓ 1 callersFunctiondeliverBackchannelLogoutTokens
* Asynchronous phase: sign one Logout Token per target client and POST it to * the registered `backchannel_logout_uri`. The caller hands this to * `
packages/oauth-provider/src/logout.ts:273
↓ 1 callersFunctionderInteger
(bytes: Uint8Array)
packages/passkey/test/webauthn.ts:30
↓ 1 callersFunctionderSignature
(raw: Uint8Array)
packages/passkey/test/webauthn.ts:38
↓ 1 callersFunctionderiveDpopReplayKey
(params: { jkt: string; htm: string; htu: string; jti: string; })
packages/core/src/oauth2/dpop.ts:331
↓ 1 callersFunctionderiveResponseMode
* Selects the response mode for an error redirect to the RP. OIDC Core 1.0 §5 * defines defaults based on response_type: `code` → query, types contai
packages/oauth-provider/src/authorize.ts:108
↓ 1 callersFunctionderiveSAMLIdentityProviderEntityID
(config: SAMLConfig)
packages/sso/src/routes/helpers.ts:255
↓ 1 callersFunctionderiveSCIMUserAttributesFromMirrors
* Derive canonical User attributes for a row persisted before * `serializedAttributes` existed, from its compatibility mirror columns. * These rows
packages/scim/src/user-attributes.ts:35
↓ 1 callersFunctionderiveSecret
(secret: string, purpose: EncryptionPurpose)
packages/better-auth/src/crypto/purpose.ts:15
↓ 1 callersFunctiondescribeFailure
( code: unknown, sameKeyIndexes: Document[], )
packages/mongo-adapter/src/mongodb-adapter.ts:276
↓ 1 callersFunctiondescribeIssue
(issue: z.core.$ZodIssue, field: string)
packages/oauth-provider/src/oauth-endpoint.ts:281
↓ 1 callersFunctiondescribeValidationFailure
(cause: unknown)
packages/release-tooling/src/ai/generate-structured.ts:48
↓ 1 callersFunctiondetectDatabase
()
packages/telemetry/src/detectors/detect-database.ts:16
↓ 1 callersFunctiondetectDatabaseNode
()
packages/telemetry/src/node.ts:264
↓ 1 callersFunctiondetectFramework
()
packages/telemetry/src/detectors/detect-framework.ts:17
↓ 1 callersFunctiondetectFrameworkNode
()
packages/telemetry/src/node.ts:283
↓ 1 callersFunctiondetectLocale
( ctx: GenericEndpointContext, )
packages/i18n/src/index.ts:94
↓ 1 callersFunctiondetectReleaseCandidate
( version: string, branch: string, workspace: string, )
packages/release-tooling/test/release-collection.test.ts:89
↓ 1 callersFunctiondetectSystemInfo
()
packages/telemetry/src/node.ts:87
↓ 1 callersFunctiondetectSystemInfo
()
packages/telemetry/src/detectors/detect-system-info.ts:74
↓ 1 callersFunctiondeviceCode
( opts: DeviceAuthorizationOptions, grant: Grant, )
packages/better-auth/src/plugins/device-authorization/routes.ts:205
↓ 1 callersFunctiondeviceToken
( opts: DeviceAuthorizationOptions, grant: Grant, )
packages/better-auth/src/plugins/device-authorization/routes.ts:649
↓ 1 callersFunctiondeviceVerify
( grant: Grant, )
packages/better-auth/src/plugins/device-authorization/routes.ts:786
↓ 1 callersFunctiondigestManagedToken
( token: string, options: ResolvedManagedConnectionOptions, )
packages/scim/src/managed-connections.ts:287
↓ 1 callersFunctiondirectMetadataChildren
( element: XMLElement, localName: string, )
packages/sso/src/saml/response-binding.ts:75
↓ 1 callersFunctiondiscord
(options: DiscordOptions)
packages/core/src/social-providers/discord.ts:86
↓ 1 callersFunctiondismiss
()
demo/nextjs/hooks/use-toast.ts:151
↓ 1 callersFunctiondismissOnEscape
( close: () => void, triggerRef: React.RefObject<HTMLButtonElement | null>, )
docs/components/landing/staggered-nav-files.tsx:329
↓ 1 callersFunctiondispatchVerificationEmail
( c: GenericEndpointContext, user: User, callbackURL: string | undefined, deferUntilAfterTransaction?: boo
packages/better-auth/src/oauth2/link-account.ts:734
↓ 1 callersFunctiondisplayPath
(filePath: string, scope: "project" | "global")
packages/cli/src/commands/ai.ts:772
↓ 1 callersFunctiondocumentFetchCount
(clientId: string)
packages/cimd/src/metadata-refresh.test.ts:101
↓ 1 callersFunctiondpopChallenge
(error: string, description: string)
packages/oauth-provider/src/userinfo.test.ts:613
↓ 1 callersFunctiondpopUnauthorized
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, error: string, description: string, )
packages/oauth-provider/src/userinfo.ts:142
↓ 1 callersFunctiondrainBackgroundTasks
()
packages/better-auth/src/api/routes/sign-up.test.ts:1193
↓ 1 callersFunctiondrizzleCode
({ provider, additionalOptions, }: { provider: "sqlite" | "mysql" | "pg"; additionalOptions?: Record<strin
packages/cli/src/commands/init/configs/databases.config.ts:53
↓ 1 callersFunctioneffectiveIdentityBoundary
(config: SAMLConfig)
packages/sso/src/routes/providers.ts:157
↓ 1 callersFunctionelectronInitOAuthProxy
(opts: ElectronOptions)
packages/electron/src/routes.ts:166
↓ 1 callersFunctionelectronToken
(_opts: ElectronOptions)
packages/electron/src/routes.ts:39
↓ 1 callersFunctionelectronTransferUser
( _opts: ElectronOptions, { handleTransfer, }: { handleTransfer: ( ctx: GenericEndpointContext, p
packages/electron/src/routes.ts:265
↓ 1 callersFunctionemailOf
(userId: string)
packages/better-auth/src/api/routes/update-user.test.ts:1455
↓ 1 callersFunctionemitChange
(value: StoreValue<SomeStore>)
packages/better-auth/src/client/react/react-store.ts:59
↓ 1 callersFunctionemitChange
(value: StoreValue<SomeStore>)
packages/better-auth/src/client/lynx/lynx-store.ts:57
↓ 1 callersFunctionemptyStream
()
packages/better-auth/src/api/index.test.ts:354
↓ 1 callersFunctionencode
(xml: string)
packages/sso/src/saml/assertions.test.ts:108
↓ 1 callersFunctionencode
(usesObjectIdKey?: (model: string) => boolean)
packages/core/src/db/adapter/get-id-field.test.ts:248
↓ 1 callersFunctionencode
(value: object)
packages/better-auth/src/plugins/phone-number/phone-number.test.ts:1505
↓ 1 callersFunctionencodeGoogleToken
(payload: Record<string, unknown>)
packages/core/src/social-providers/google.test.ts:53
↓ 1 callersFunctionencodeMicrosoftProfile
(profile: Record<string, unknown>)
packages/core/src/social-providers/microsoft-entra-id.test.ts:57
↓ 1 callersFunctionencodeRedirectToken
(identifier: string, state: string)
packages/electron/test/utils.ts:134
↓ 1 callersFunctionencodeRefreshToken
* Encodes a refresh token for a client
packages/oauth-provider/src/token.ts:448
↓ 1 callersFunctionencryptRefreshTokenRotationReplay
( ctx: GenericEndpointContext, replay: RefreshTokenRotationReplay, )
packages/oauth-provider/src/token.ts:1107
↓ 1 callersFunctionencryptSAMLContent
(xml: string)
packages/sso/src/saml.test.ts:6987
↓ 1 callersFunctionendPreservedSessions
( where: Where[], afterEnd?: () => Promise<void>, )
packages/better-auth/src/db/internal-adapter.ts:101
↓ 1 callersFunctionendSessionWithHint
( instance: IssuerInstance, metadata: { end_session_endpoint?: string }, idTokenHint: string, )
packages/oauth-provider/src/base-url-trailing-slash.test.ts:165
↓ 1 callersFunctionendSpanWithError
(span: Span, err: unknown)
packages/core/src/instrumentation/tracer.ts:29
↓ 1 callersFunctionendUnhandledErrorResponse
(res: ServerResponse, error: unknown)
packages/better-auth/src/test-utils/http-test-instance.ts:58
↓ 1 callersFunctionendpointContext
(logger: InternalLogger)
packages/core/src/env/logger.test.ts:40
↓ 1 callersFunctionenforceSinglePatchedPrimary
( values: unknown[], preferredIndex: number | undefined, )
packages/scim/src/user-patch.ts:718
↓ 1 callersFunctionenrollImported
(imported: string)
packages/better-auth/src/plugins/two-factor/two-factor.test.ts:1898
↓ 1 callersFunctionensureDatabaseExists
()
e2e/adapter/test/kysely-adapter/adapter.kysely.mssql.test.ts:46
↓ 1 callersFunctionentryExists
(directory: string, entry: string)
docs/scripts/validate-meta.ts:29
↓ 1 callersFunctionerrorCode
(error: unknown)
packages/oauth-provider/src/pairwise.test.ts:510
↓ 1 callersFunctionerrorLogs
()
packages/oauth-provider/src/resource-startup.test.ts:110
↓ 1 callersFunctionescapeHtml
(str: string | undefined | null)
packages/sso/src/routes/helpers.ts:259
↓ 1 callersFunctionescapeHtml
(text: string)
docs/app/api/enterprise/contact/route.ts:24
↓ 1 callersFunctionescapeLikePattern
( value: string | number | boolean | string[] | number[] | Date | null, )
packages/drizzle-adapter/src/relations-v2/index.ts:55
↓ 1 callersFunctionescapeRegExpString
* Escapes all characters in a given string that have a special meaning in regular expressions
packages/better-auth/src/utils/wildcard.ts:34
↓ 1 callersFunctionescapeSqlString
(value: string)
docs/lib/copy-schema/dialects/mysql.ts:50
↓ 1 callersFunctionescapeSqlString
(value: string)
docs/lib/copy-schema/dialects/mssql.ts:47
↓ 1 callersFunctionescapedLike
( column: DrizzleColumn, pattern: string, provider: DrizzleProvider, mode: "sensitive" | "insensitive" = "
packages/drizzle-adapter/src/query-builders.ts:32
↓ 1 callersFunctionestimateEntropy
* Estimates the entropy of a string in bits. * This is a simple approximation that helps detect low-entropy secrets.
packages/better-auth/src/context/secret-utils.ts:10
↓ 1 callersFunctionestimateEntropy
* Estimates the entropy of a string in bits. * This is a simple approximation that helps detect low-entropy secrets.
packages/better-auth/src/context/create-context.ts:49
← previousnext →2,501–2,600 of 6,653, ranked by callers