MCPcopy Create free account

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

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

↓ 1 callersFunctionexpireSession
(sessionId: string)
packages/oauth-provider/src/token.test.ts:1975
↓ 1 callersFunctionexpiredToken
()
packages/oauth-provider/src/resource-challenge.test.ts:279
↓ 1 callersFunctionexportSearchIndexes
()
docs/lib/export-search-indexes.ts:6
↓ 1 callersFunctionexposeBridges
* Exposes IPC bridges to the renderer process.
packages/electron/src/preload.ts:32
↓ 1 callersFunctionexposeChallengeHeader
* The exposed-header list with `WWW-Authenticate` added. Before hooks write to * the dispatch's `ctx.context.responseHeaders`, which the endpoint's o
packages/oauth-provider/src/userinfo.ts:112
↓ 1 callersFunctionextendSAMLSessionRecords
* SLO records are written with the session's expiry at sign-in. Move it when a * refresh extends the session, so expired-row cleanup doesn't drop the
packages/sso/src/index.ts:268
↓ 1 callersFunctionextractAssertionId
* Extracts the Assertion ID from a SAML response XML. * Used for replay protection per SAML 2.0 Core section 2.3.3. * * Reads the ID through the DO
packages/sso/src/routes/saml-pipeline.ts:244
↓ 1 callersFunctionextractCubicSummary
(body: string)
packages/release-tooling/src/changesets/recommend.ts:23
↓ 1 callersFunctionextractEmbedded6to4IPv4
* Extract the IPv4 address embedded in a 6to4 (`2002::/16`) literal: the two * 16-bit groups after the prefix of the expanded form (`2002:XXXX:YYYY:.
packages/core/src/utils/host.ts:197
↓ 1 callersFunctionextractEmbeddedTrailingIPv4
* Extract the IPv4 address held in the last two 16-bit groups of an expanded * IPv6 address, as in the well-known NAT64 prefix `64:ff9b::/96`.
packages/core/src/utils/host.ts:209
↓ 1 callersFunctionextractEncryptionAlgorithms
(xml: string)
packages/sso/src/saml/algorithms.ts:105
↓ 1 callersFunctionextractInsufficientScope
(error: APIError)
packages/oauth-provider/src/resource-challenge.ts:131
↓ 1 callersFunctionextractPresentedAccessToken
(request: Request)
demo/nextjs/app/api/mcp/route.ts:8
↓ 1 callersFunctionextractReleasePRNumbers
(body: string)
packages/release-tooling/src/release-notes/collect.ts:183
↓ 1 callersFunctionextractSetCookies
* Regression coverage for the duplicate `Set-Cookie` leak on a 2FA-required * credential sign-in. * * Prior to the fix in `cookies/expireCookie`, t
packages/better-auth/src/plugins/two-factor/two-factor.security.test.ts:39
↓ 1 callersFunctionextractTestEntry
( entry: TestEntry, )
packages/test-utils/src/adapter/create-test-suite.ts:700
↓ 1 callersFunctionfail
(_error: Error)
packages/core/src/db/schema-check.test.ts:91
↓ 1 callersFunctionfailEmailIndex
(makeError: () => unknown, times = Number.POSITIVE_INFINITY)
packages/mongo-adapter/src/mongodb-adapter.test.ts:865
↓ 1 callersFunctionfailOtpOnce
()
packages/better-auth/src/plugins/two-factor/two-factor.account-lockout.test.ts:144
↓ 1 callersFunctionfailToLoad
(file: string, error: unknown)
packages/cli/src/utils/get-config.ts:414
↓ 1 callersFunctionfailingStorage
()
packages/better-auth/src/db/secondary-storage-errors.test.ts:263
↓ 1 callersFunctionfakeD1Database
()
packages/kysely-adapter/src/dialect.test.ts:61
↓ 1 callersFunctionfakeEndpointCtx
( authCtx: Awaited<ReturnType<typeof bootProvider>>["ctx"], )
packages/oauth-provider/src/validation-flow.test.ts:30
↓ 1 callersFunctionfakeEndpointCtx
( authCtx: Awaited<ReturnType<typeof bootProvider>>["ctx"], )
packages/oauth-provider/src/resources-e2e.test.ts:56
↓ 1 callersFunctionfakePopup
()
packages/better-auth/src/plugins/oauth-popup/oauth-popup.client.test.ts:33
↓ 1 callersFunctionfallbackFor
(error: unknown, secrets: Secrets)
packages/core/src/db/secondary-storage-errors.ts:380
↓ 1 callersFunctionfallbackReason
( reviewFeedback: string | null, copyFeedback: string | null, )
packages/release-tooling/src/release-notes/rewrite.ts:160
↓ 1 callersFunctionfamilyName
(name: unknown)
packages/oauth-provider/src/standard-claims.test.ts:24
↓ 1 callersFunctionfbProfile
(id: string, email = `${id}@example.com`)
packages/core/src/social-providers/facebook.test.ts:35
↓ 1 callersFunctionfetch
(request)
e2e/smoke/test/fixtures/cloudflare/src/plugin-retry.ts:101
↓ 1 callersFunctionfetch
(request)
e2e/smoke/test/fixtures/cloudflare/src/verification-lock.ts:53
↓ 1 callersFunctionfetchClientJwks
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, client: SchemaClient<Scope[]>, )
packages/oauth-provider/src/utils/client-assertion.ts:592
↓ 1 callersFunctionfetchDiscovery
( url: string, headers?: Record<string, string>, timeout?: number, )
packages/better-auth/src/plugins/generic-oauth/index.ts:120
↓ 1 callersFunctionfetchGitHubStats
()
docs/lib/community-stats.ts:80
↓ 1 callersFunctionfetchInserted
(trx: any)
packages/kysely-adapter/src/kysely-adapter.ts:239
↓ 1 callersFunctionfetchInserted
(tx: DB)
packages/drizzle-adapter/src/drizzle-adapter.ts:267
↓ 1 callersFunctionfetchInserted
(tx: DB)
packages/drizzle-adapter/src/relations-v2/index.ts:415
↓ 1 callersFunctionfetchJwksFromUri
( jwksUri: string, fetchClientMetadataResource: ClientMetadataResourceFetch = globalThis.fetch, )
packages/oauth-provider/src/utils/client-assertion.ts:521
↓ 1 callersFunctionfetchNpmDownloads
()
docs/lib/community-stats.ts:25
↓ 1 callersFunctionfetchNpmWeeklyHistory
()
docs/lib/community-stats.ts:46
↓ 1 callersFunctionfetchOnMount
()
packages/better-auth/src/client/query.ts:161
↓ 1 callersFunctionfetchPR
( github: GitHubReader | undefined, prNumber: number, )
packages/release-tooling/src/release-notes/collect.ts:143
↓ 1 callersFunctionfetchReleaseBody
( github: GitHubReader | undefined, tag: string, )
packages/release-tooling/src/release-notes/collect.ts:166
↓ 1 callersFunctionfetchSessionOnMount
()
packages/better-auth/src/client/session-atom.ts:259
↓ 1 callersFunctionfetchUserInfo
( tokens: OAuth2Tokens, userInfoUrl: string | undefined, idTokenClaims?: JWTPayload, )
packages/better-auth/src/plugins/generic-oauth/index.ts:179
↓ 1 callersFunctionfetchUserinfo
(accessToken: string)
packages/oauth-provider/src/token.test.ts:1952
↓ 1 callersFunctionfillCheckoutSessionId
* Fill the Stripe "{CHECKOUT_SESSION_ID}" template variable in callbackURL. * @see https://docs.stripe.com/payments/checkout/custom-success-page?paym
packages/stripe/src/routes.ts:1685
↓ 1 callersFunctionfillDnsLookupLimit
Leaves 16 abandoned lookups outstanding, the Node transport's limit.
packages/cimd/src/stale-if-error.node.test.ts:125
↓ 1 callersFunctionfilterClaimsRequestUserInfoClaims
( value: unknown, allowedUserInfoClaims: string[], )
packages/oauth-provider/src/claims-request.ts:93
↓ 1 callersFunctionfilterPrivateEnv
(publicPrefix: string, privatePrefix: string)
packages/cli/src/utils/sveltekit-virtual-modules.ts:222
↓ 1 callersFunctionfilterPublicEnv
(publicPrefix: string, privatePrefix: string)
packages/cli/src/utils/sveltekit-virtual-modules.ts:232
↓ 1 callersFunctionfilterResources
(activeTag: string | null)
docs/components/resource-section.tsx:23
↓ 1 callersFunctionfilterSSOProviderAdditionalFields
(provider: T, options?: SSOOptions)
packages/sso/src/routes/providers.ts:381
↓ 1 callersFunctionfinalizeSCIMUserPatch
( state: SCIMUserPatchState, document: Record<string, unknown>, )
packages/scim/src/user-patch.ts:1031
↓ 1 callersFunctionfindApiKeyAndConfig
(ctx: HookEndpointContext)
packages/api-key/src/index.ts:150
↓ 1 callersFunctionfindAttribute
( attributes: readonly SCIMAttributeName[], key: string, )
packages/scim/src/attribute-names.ts:37
↓ 1 callersFunctionfindBinding
()
packages/scim/src/connection-state.ts:34
↓ 1 callersFunctionfindByIdentifier
(id: string)
packages/better-auth/src/db/internal-adapter.ts:1452
↓ 1 callersFunctionfindByReference
(value: string | null)
packages/oauth-provider/src/utils/index.ts:1264
↓ 1 callersFunctionfindByUserCode
(value: string)
packages/better-auth/src/plugins/device-authorization/routes.ts:53
↓ 1 callersFunctionfindCandidates
(model: CustomerType)
packages/stripe/src/hooks.ts:23
↓ 1 callersFunctionfindChallengeRow
The verification row behind the challenge cookie in `challengeHeaders`.
packages/better-auth/src/plugins/two-factor/two-factor.security.test.ts:476
↓ 1 callersFunctionfindChangesetSourcePR
(id: string, ref: string)
packages/release-tooling/src/release-notes/collect.ts:224
↓ 1 callersFunctionfindConnectionBinding
( database: Pick<DBAdapter, "findOne">, connectionId: string, )
packages/scim/src/connection-decommission.ts:85
↓ 1 callersFunctionfindConsents
()
packages/oauth-provider/src/post-login.test.ts:233
↓ 1 callersFunctionfindConsumedChangesets
( ref: string, previousTag: string, version: string, )
packages/release-tooling/src/release-notes/collect.ts:338
↓ 1 callersFunctionfindCurrentChangesets
(ref: string)
packages/release-tooling/src/release-notes/collect.ts:359
↓ 1 callersFunctionfindDeepLink
(argv: string[])
packages/electron/src/browser.ts:205
↓ 1 callersFunctionfindDeletedChangesets
( parentRef: string, commitRef: string, )
packages/release-tooling/src/release-notes/collect.ts:277
↓ 1 callersFunctionfindHintedSession
( ctx: GenericEndpointContext, sessionId: string, )
packages/oauth-provider/src/logout.ts:586
↓ 1 callersFunctionfindMarker
(nodes: Html[], marker: string)
packages/release-tooling/src/release-notes/comment.ts:40
↓ 1 callersFunctionfindMembership
( instance: Instance, organizationId: string, userId: string, )
packages/sso/src/linking/org-assignment.security.test.ts:185
↓ 1 callersFunctionfindMonorepoRoot
( startDir: string, )
packages/cli/src/utils/get-package-info.ts:208
↓ 1 callersFunctionfindObjectIdModels
( dataModel: PrismaRuntimeDataModel | undefined, )
packages/prisma-adapter/src/schema-check.ts:56
↓ 1 callersFunctionfindOrCreateConnectionBinding
( database: Pick<DBAdapter, "create" | "findOne">, connectionId: string, provisioningDomainId?: string, )
packages/scim/src/connection-decommission.ts:61
↓ 1 callersFunctionfindPackageVersion
( resolvedPath: string, packageName: string, )
packages/cli/src/utils/get-package-info.ts:39
↓ 1 callersFunctionfindPackageVersionInNodeModules
( packageName: string, projectDirectory: string, )
packages/cli/src/utils/get-package-info.ts:61
↓ 1 callersFunctionfindPendingChangesets
(ref: string)
packages/release-tooling/src/release-notes/collect.ts:255
↓ 1 callersFunctionfindProjectFrame
* The first stack frame in the project outside node_modules, so a config that * throws can point at the user's own line.
packages/cli/src/utils/get-config.ts:315
↓ 1 callersFunctionfindReferenceByStripeCustomerId
* Find organization or user by stripeCustomerId. * @internal
packages/stripe/src/hooks.ts:18
↓ 1 callersFunctionfindSAMLSessionRecord
( ctx: AuthContext, identifier: string, isOwnRecord: (record: Verification) => boolean, )
packages/sso/src/index.ts:246
↓ 1 callersFunctionfindSCIMUserByExternalIdKey
( adapter: Pick<DBAdapter, "findOne">, connection: SCIMConnection, externalIdKey: string, )
packages/scim/src/user-provisioning.ts:220
↓ 1 callersFunctionfindTopLevelFilterOperation
( filter: string, )
packages/scim/src/collection-query.ts:306
↓ 1 callersFunctionfindUnreleasedVersionCommit
( version: string, ref: string, )
packages/release-tooling/src/release-notes/collect.ts:327
↓ 1 callersFunctionfindUser
(userId: string)
packages/better-auth/src/db/internal-adapter.ts:272
↓ 1 callersMethodfindVerificationValue
( identifier: string, )
demo/nextjs/lib/scim-demo-employee.ts:97
↓ 1 callersFunctionfindVerifiedDomainProviders
( ctx: GenericEndpointContext, domain: string, )
packages/sso/src/linking/org-assignment.ts:70
↓ 1 callersFunctionfindViolations
(file: string)
test/unit/no-multi-clause-adapter-update.test.ts:146
↓ 1 callersFunctionfindWhereValue
(where: readonly Where[], field: string)
packages/scim/src/scim-group-patch-delta.test.ts:28
↓ 1 callersFunctionfindWhereValue
(where: readonly Where[], field: string)
packages/scim/src/scim-user-concurrency.test.ts:72
↓ 1 callersFunctionfinish
(_findings: SchemaFinding[])
packages/core/src/db/schema-check.test.ts:53
↓ 1 callersFunctionfinish
(_findings: SchemaFinding[])
packages/better-auth/src/auth/schema-check.test.ts:105
↓ 1 callersFunctionfinishFirstDelivery
()
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:3252
↓ 1 callersFunctionfirstDelivered
()
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:3248
↓ 1 callersFunctionfixtureAtomClient
()
e2e/smoke/test/fixtures/tsconfig-composite-client/packages/app/lib/auth-client.ts:41
↓ 1 callersFunctionflakyDiscovery
(providerId: string)
packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts:5944
↓ 1 callersFunctionflattenSqlChunks
Every chunk of an SQL expression, descending into nested SQL.
packages/drizzle-adapter/src/drizzle-adapter.test.ts:587
↓ 1 callersFunctionfmt
(d: Date)
docs/lib/community-stats.ts:51
↓ 1 callersFunctionfold
(value: string)
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:664
↓ 1 callersFunctionforgeIdToken
()
packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts:4939
← previousnext →2,701–2,800 of 6,819, ranked by callers