MCPcopy Create free account

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

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

↓ 2 callersFunctionjsonError
(message: string, status: number)
demo/nextjs/app/api/scim-demo/route.ts:5
↓ 2 callersFunctionjwksResponse
(...publicJWKs: JWK[])
packages/core/src/oauth2/verify.test.ts:94
↓ 2 callersFunctionkeyedByChangeId
( ids: readonly string[], fields: T, )
packages/release-tooling/src/release-notes/schema.ts:100
↓ 2 callersFunctionlastLoginMethodClient
(config: LastLoginMethodClientConfig)
packages/expo/src/plugins/last-login-method.ts:38
↓ 2 callersFunctionlinkModel
(opts: OAuthOptions<Scope[]>)
packages/oauth-provider/src/oauthResource/endpoints.ts:15
↓ 2 callersFunctionlinkOAuthAccount
( c: GenericEndpointContext, opts: LinkOAuthAccountOptions, )
packages/better-auth/src/oauth2/link-account.ts:97
↓ 2 callersFunctionlistCommits
(range: string, path: string)
packages/release-tooling/src/release-notes/collect.ts:294
↓ 2 callersFunctionloadJwks
* Fetches the key set into `entry`, joining a fetch already in flight so * concurrent verifications share one call. Each caller bounds its own wait,
packages/core/src/oauth2/verify.ts:138
↓ 2 callersFunctionlogCleanupError
(key: string, error: unknown)
packages/expo/src/client-storage.ts:371
↓ 2 callersFunctionlogoutConfirmationCookieOptions
( ctx: GenericEndpointContext, maxAge: number, )
packages/oauth-provider/src/logout.ts:467
↓ 2 callersFunctionlogoutConfirmationPath
(ctx: GenericEndpointContext)
packages/oauth-provider/src/logout.ts:409
↓ 2 callersFunctionlogoutSuccessPage
(note?: string)
packages/oauth-provider/src/logout.ts:430
↓ 2 callersFunctionlower
(key: string | symbol)
packages/core/src/oauth2/token-endpoint-auth.ts:176
↓ 2 callersFunctionmakeStatelessAuth
()
packages/better-auth/src/api/routes/account.test.ts:3089
↓ 2 callersFunctionmapConcurrent
( items: readonly T[], fn: (item: T, index: number) => Awaitable<R>, options: MapConcurrentOptions, )
packages/core/src/utils/async.ts:20
↓ 2 callersFunctionmapTypeToBump
( type: string, breaking: boolean, )
packages/release-tooling/src/change-classifier.ts:184
↓ 2 callersFunctionmatchType
( columnDataType: string, fieldType: DBFieldType, dbType: KyselyDatabaseType, )
packages/better-auth/src/db/get-migration.ts:545
↓ 2 callersFunctionmatchesAccountSelection
( ctx: GenericEndpointContext, account: Account, { resolvedUserId, selection, }: { resolvedUserId: s
packages/better-auth/src/api/routes/account.ts:605
↓ 2 callersFunctionmatchesHostPattern
(host: string, pattern: string)
packages/better-auth/src/utils/url.ts:361
↓ 2 callersFunctionmatchesOriginPattern
( url: string, pattern: string, settings?: { allowRelativePaths: boolean }, )
packages/better-auth/src/auth/trusted-origins.ts:133
↓ 2 callersFunctionmergeAPIErrorHeaders
* Combine the two header sources an `APIError` can carry into one set: * - `kAPIErrorHeaderSymbol`: `ctx.responseHeaders` accumulated via * `c.set
packages/better-auth/src/api/dispatch.ts:141
↓ 2 callersFunctionmergeDiscoveryMetadata
( discoveries: ClientDiscovery[], )
packages/oauth-provider/src/utils/index.ts:423
↓ 2 callersFunctionmergeHeader
* Write one header onto `target`: `set-cookie` is appended (multiple cookies * are legal), `access-control-expose-headers` gains the names it lacks (
packages/better-auth/src/api/dispatch.ts:88
↓ 2 callersFunctionmergeScopes
( stored: string | null | undefined, incoming: string[] | undefined, )
packages/core/src/oauth2/utils.ts:71
↓ 2 callersFunctionmetadata
(clientId: string)
packages/cimd/src/fetch-governor.test.ts:19
↓ 2 callersFunctionmetadata
(clientId: string, clientName = "Cached Client")
packages/cimd/src/cache.test.ts:58
↓ 2 callersFunctionmigrateAction
(opts: any)
packages/cli/src/commands/migrate.ts:17
↓ 2 callersFunctionminutesFromNow
(minutes: number)
packages/sso/src/saml-clock-skew.test.ts:59
↓ 2 callersFunctionmodifyRefList
* Read-modify-write the ref list: * used only when the list is the source of truth.
packages/api-key/src/adapter.ts:278
↓ 2 callersFunctionneedsMetadataMigration
* Checks if metadata needs migration (is a string instead of object)
packages/api-key/src/adapter.ts:37
↓ 2 callersFunctionneedsRuntimeDiscovery
( config: Partial<HydratedOIDCConfig> | undefined, )
packages/sso/src/oidc/discovery.ts:815
↓ 2 callersFunctionnodeContainsPath
(node: Node, pathname: string)
docs/components/docs/docs-sidebar.tsx:70
↓ 2 callersFunctionnormalizeClientAuthenticationParameters
( request: Request | undefined, body: Record<string, unknown> = {}, )
packages/oauth-provider/src/utils/index.ts:665
↓ 2 callersFunctionnormalizeClientCredentialsScopes
( scopes: readonly string[], )
packages/oauth-provider/src/oauthClient/client-credentials.ts:16
↓ 2 callersFunctionnormalizeDiscoveryUrls
( document: OIDCDiscoveryDocument, issuer: string, isTrustedOrigin: DiscoverOIDCConfigParams["isTrustedOrig
packages/sso/src/oidc/discovery.ts:603
↓ 2 callersFunctionnormalizeLogoutAudiences
(value: unknown)
packages/oauth-provider/src/logout.ts:639
↓ 2 callersFunctionnormalizeMultiValuedPrimaryValue
(value: unknown)
packages/scim/src/active-normalization.ts:38
↓ 2 callersFunctionnormalizePatchPath
(path: string)
packages/scim/src/user-patch.ts:348
↓ 2 callersFunctionnormalizeReplayValues
(values: string[] | undefined)
packages/oauth-provider/src/token.ts:983
↓ 2 callersFunctionnormalizeRoleName
(role: string)
packages/better-auth/src/plugins/organization/routes/crud-access-control.ts:25
↓ 2 callersFunctionnormalizeSCIMEmails
( userName: string, emails?: readonly SCIMEmail[], )
packages/scim/src/user-profile.ts:27
↓ 2 callersFunctionnormalizeSCIMUserEntraCompatibilityRequestBody
( method: string, body: unknown, )
packages/scim/src/active-normalization.ts:125
↓ 2 callersFunctionnormalizeUrl
( name: string, endpoint: string, issuer: string, )
packages/sso/src/oidc/discovery.ts:704
↓ 2 callersFunctionnormalizeUserResourceEntraCompatibility
( value: Record<string, unknown>, )
packages/scim/src/active-normalization.ts:61
↓ 2 callersFunctionnullValueOperations
The operations a null value at `path` becomes; throws when null is invalid.
packages/scim/src/null-attributes.ts:90
↓ 2 callersFunctionoauthAuthorizationServerMetadata
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/metadata.ts:146
↓ 2 callersFunctionoauthProviderAuthServerMetadata
( auth: Auth, opts?: { headers?: HeadersInit }, )
packages/oauth-provider/src/metadata.ts:242
↓ 2 callersFunctionobjectId
()
packages/better-auth/src/plugins/magic-link/magic-link.test.ts:1011
↓ 2 callersFunctionofferSkillInstall
(skillName: string)
packages/cli/src/commands/ai.ts:664
↓ 2 callersFunctionoidcIdentityBoundaryChanged
( current: OIDCConfig, updated: OIDCConfig, )
packages/sso/src/routes/providers.ts:122
↓ 2 callersFunctionoidcServerMetadata
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]> & { claims?: string[] }, )
packages/oauth-provider/src/metadata.ts:165
↓ 2 callersFunctiononChange
()
docs/hooks/use-mobile.ts:12
↓ 2 callersFunctiononRequest
(request, ctx)
packages/scim/src/index.ts:275
↓ 2 callersFunctiononResponse
(context)
packages/core/src/social-providers/microsoft-entra-id.ts:298
↓ 2 callersFunctiononSubmit
(e?: SyntheticEvent)
docs/components/ai-chat.tsx:431
↓ 2 callersFunctionoutput
(value)
packages/api-key/src/schema.ts:196
↓ 2 callersFunctionparseAdditionalUserInputFromProviderProfile
( options: BetterAuthOptions, profile: Record<string, unknown> = {}, action: "create" | "update", )
packages/better-auth/src/db/schema.ts:225
↓ 2 callersFunctionparseAndValidateConfig
( configString: string | null | undefined, configType: "SAML" | "OIDC", )
packages/sso/src/routes/providers.ts:715
↓ 2 callersFunctionparseAuthorizationRequest
( searchParams: SCIMDemoOIDCSearchParams, )
demo/nextjs/lib/scim-demo-oidc.ts:176
↓ 2 callersFunctionparseCompactCookieCache
(value: unknown)
packages/better-auth/src/cookies/cache.ts:41
↓ 2 callersFunctionparseConfigSnapshot
( config: T | string | null | undefined, configType: "SAML" | "OIDC", )
packages/sso/src/routes/providers.ts:209
↓ 2 callersFunctionparseCookieChunkIndex
( cookieName: string, name: string, )
packages/better-auth/src/cookies/session-store.ts:46
↓ 2 callersFunctionparseEnterprisePatchObject
( value: unknown, attribute: string, )
packages/scim/src/user-patch.ts:634
↓ 2 callersFunctionparseEnvFiles
(envFiles: string[])
packages/cli/src/commands/init/utility/env.ts:11
↓ 2 callersFunctionparseEnvelope
( data: string, )
packages/better-auth/src/crypto/index.ts:18
↓ 2 callersFunctionparseGrantedScopes
(scopeClaim: unknown)
packages/cimd/src/mcp-e2e.test.ts:71
↓ 2 callersFunctionparseGrantedScopes
(scopeClaim: unknown)
packages/mcp/src/mcp.test.ts:73
↓ 2 callersFunctionparseManagedScopes
(serializedScopes: string)
packages/scim/src/managed-connections.ts:297
↓ 2 callersFunctionparseMarkdown
(value: string)
packages/release-tooling/src/ai/generated-copy.ts:33
↓ 2 callersFunctionparsePrompt
(prompt: string)
packages/oauth-provider/src/utils/index.ts:1105
↓ 2 callersFunctionparseSSOProviderAdditionalFields
( options: SSOOptions | undefined, data: Record<string, unknown>, action: "create" | "update", )
packages/sso/src/routes/schemas.ts:55
↓ 2 callersFunctionparseScopes
(scope: string | null | undefined)
packages/oauth-provider/src/device-code.ts:94
↓ 2 callersFunctionparseSecretsEnv
( envValue: string | undefined, )
packages/better-auth/src/context/secret-utils.ts:16
↓ 2 callersFunctionparseSessionCookieJwtPayload
( payload: JWTPayload, )
packages/better-auth/src/cookies/jwt.ts:34
↓ 2 callersFunctionparseStoredScopes
(scope: string | null | undefined)
packages/better-auth/src/api/routes/account.ts:42
↓ 2 callersFunctionparseVerificationRecord
( value: string, audience: SCIMDemoEmployeeVerificationRecord["audience"], )
demo/nextjs/lib/scim-demo-employee.ts:151
↓ 2 callersFunctionpatchMembers
( groupId: string, op: "add" | "remove", memberIds: string[], )
packages/scim/src/scim-read-limits.test.ts:226
↓ 2 callersFunctionpaypal
(options: PayPalOptions)
packages/core/src/social-providers/paypal.ts:70
↓ 2 callersFunctionphoneNumberClient
()
packages/better-auth/src/plugins/phone-number/client.ts:8
↓ 2 callersFunctionphoneNumberResetIdentifier
(phoneNumber: string)
packages/better-auth/src/plugins/phone-number/routes.ts:1000
↓ 2 callersFunctionpickClaims
( claims?: Record<string, unknown>, base?: Record<string, unknown>, )
packages/oauth-provider/src/userinfo.ts:63
↓ 2 callersFunctionpost
(path: string, body: Record<string, unknown>)
packages/better-auth/src/plugins/two-factor/two-factor.test.ts:3030
↓ 2 callersFunctionprepareAuthentication
* Seeds a credential and challenge so verification reaches the WebAuthn check.
packages/passkey/src/passkey-origin.test.ts:69
↓ 2 callersFunctionprismaResolver
(options: PrismaResolverOptions)
docs/lib/copy-schema/adapter/prisma.ts:23
↓ 2 callersFunctionprocessJoinedResults
( rows: any[], joinConfig: JoinConfig | undefined, allSelectsStr: { joinModel: string; j
packages/kysely-adapter/src/kysely-adapter.ts:462
↓ 2 callersFunctionprojectionRequestsGroupMembers
( projection: SCIMAttributeProjection, )
packages/scim/src/group-provisioning.ts:819
↓ 2 callersFunctionprovider
(providerId = "workforce")
packages/sso/src/oidc-user-resolution-http-e2e.test.ts:100
↓ 2 callersFunctionpruneFetchStartTimesMs
( fetchStartTimesMs: number[], nowMs: number, )
packages/cimd/src/resolver.ts:134
↓ 2 callersFunctionqueueCachedUserSessionDeletion
( userId: string, sessionReferences?: readonly ActiveSessionReference[], )
packages/better-auth/src/db/internal-adapter.ts:246
↓ 2 callersFunctionquote
(name: string)
packages/core/src/db/adapter/factory.test.ts:438
↓ 2 callersFunctionquoteAuthParam
(value: string)
packages/oauth-provider/src/resource-challenge.ts:14
↓ 2 callersFunctionquotePostgresIdentifier
(identifier: string)
packages/better-auth/src/test-utils/test-instance.ts:93
↓ 2 callersFunctionquoteSqliteStringLiteral
(value: string)
packages/kysely-adapter/src/d1-sqlite-dialect.ts:37
↓ 2 callersFunctionread
(key: string)
packages/api-key/src/api-key.test.ts:5317
↓ 2 callersFunctionreadDriverRowCount
(result: unknown)
packages/drizzle-adapter/src/drizzle-adapter.ts:109
↓ 2 callersFunctionreadDriverRowCount
(result: unknown)
packages/drizzle-adapter/src/relations-v2/index.ts:68
↓ 2 callersFunctionreadEmailSet
(value: unknown, userName: string)
packages/scim/src/user-patch.ts:160
↓ 2 callersFunctionreadEmailValues
(value: unknown)
packages/scim/src/user-patch.ts:150
↓ 2 callersFunctionreadEnv
()
e2e/smoke/test/fixtures/resource-server/auth.ts:37
↓ 2 callersFunctionreadJSON
(response: Response)
packages/scim/src/scim-sso-http-e2e.test.ts:58
← previousnext →1,401–1,500 of 6,486, ranked by callers