MCPcopy Create free account

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

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

↓ 2 callersFunctionreadJsonConfig
* Returns `null` when the file exists but is not a JSON object, such as JSONC, * because overwriting it would drop entries we could not read.
packages/cli/src/commands/ai.ts:742
↓ 2 callersFunctionreadJwksInProcess
( { context, request, headers, path }: JwksReadContext, jwtPlugin: ReturnType<typeof jwt>, )
packages/oauth-provider/src/utils/index.ts:124
↓ 2 callersFunctionreadMemberIdFromValuePath
(path: string)
packages/scim/src/group-provisioning.ts:276
↓ 2 callersFunctionreadNonEmptyString
(value: unknown, attribute: string)
packages/scim/src/user-patch.ts:135
↓ 2 callersFunctionreadPackageVersion
( packageJsonPath: string, expectedPackageName: string, )
packages/cli/src/utils/get-package-info.ts:20
↓ 2 callersFunctionreadPackageVersion
(path: string)
docs/scripts/sync-versions.ts:65
↓ 2 callersFunctionreadPatchMemberIds
(value: unknown)
packages/scim/src/group-provisioning.ts:253
↓ 2 callersFunctionreadRootPackageJson
()
packages/telemetry/src/node.ts:29
↓ 2 callersFunctionreadRow
({ model, modelKey, where, }: FallbackRequest)
packages/core/src/db/adapter/atomic-fallback.ts:96
↓ 2 callersFunctionreadSearchParam
(input: SCIMDemoOIDCSearchParams, name: string)
demo/nextjs/lib/scim-demo-oidc.ts:154
↓ 2 callersFunctionreadSingleRecord
Microsoft Entra may send a single complex value as a one-element array.
packages/scim/src/null-attributes.ts:18
↓ 2 callersFunctionreadStoredValue
( storage: Pick<ExpoClientStorage, "getItem">, key: string, baseValue: string | null, )
packages/expo/src/client-storage.ts:172
↓ 2 callersFunctionreadStoredValueAsync
( storage: Pick<ExpoClientStorage, "getItemAsync">, key: string, baseValue: string | null, )
packages/expo/src/client-storage.ts:195
↓ 2 callersFunctionreadStringClaim
( accessTokenClaims: unknown, claimName: string, )
demo/nextjs/app/api/mcp/route.ts:21
↓ 2 callersFunctionready
(data: Record<string, string> = {})
e2e/smoke/test/fixtures/resource-server/auth.ts:52
↓ 2 callersFunctionrecommendChangeset
( github: GitHubReader, options: RecommendationOptions, )
packages/release-tooling/src/changesets/recommend.ts:43
↓ 2 callersFunctionreconcileProjectionUserState
( options: SCIMOptions, database: DBTransactionAdapter, input: { provisioningDomainId: string; userId:
packages/scim/src/projection.ts:326
↓ 2 callersFunctionreconcileSCIMProjectionDomainBatch
(input: { database: DBTransactionAdapter; auth: AuthContext; projection: SCIMProjectionCoordinator; identi
packages/scim/src/projection.ts:711
↓ 2 callersFunctionreddit
(options: RedditOptions)
packages/core/src/social-providers/reddit.ts:28
↓ 2 callersFunctionredisStorage
(config: RedisStorageConfig)
packages/redis-storage/src/redis-storage.ts:37
↓ 2 callersFunctionrefreshAdapter
(betterAuthOptions: BetterAuthOptions)
packages/test-utils/src/adapter/test-adapter.ts:96
↓ 2 callersFunctionregister
()
packages/oauth-provider/src/resource-startup.test.ts:99
↓ 2 callersFunctionregisterClientMetadataDocument
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, input: RegisterClientMetadataDocumentInput, )
packages/oauth-provider/src/register.ts:1184
↓ 2 callersFunctionrejectAuthorizationCode
* Rejects an unknown, expired, or already-redeemed authorization code. A code * presented after redemption revokes the tokens it issued (RFC 6749 §4.
packages/oauth-provider/src/token.ts:1501
↓ 2 callersFunctionrejectReadOnlyAttribute
(attribute: string)
packages/scim/src/user-patch.ts:215
↓ 2 callersFunctionremoveTrailingUndefined
(args: string[])
packages/cli/src/commands/init/utility/plugin.ts:253
↓ 2 callersFunctionrenderCompletion
* Renders the page that posts the outcome (token or error) to the opener. The * caller must pass a trusted `popupOrigin` — validated at `/oauth-popup
packages/better-auth/src/plugins/oauth-popup/index.ts:95
↓ 2 callersFunctionreplaceSCIMUserSource
* Replaces a retained SCIM User's writable state in place and reconciles the * linked Better Auth User. Returns `null` when the guarded source row no
packages/scim/src/user-provisioning.ts:249
↓ 2 callersMethodreply
* Reply to the sender of this email message with a new EmailMessage object. * @param message The reply message. * @returns A promise that resolves
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:14094
↓ 2 callersFunctionrequestAuth
( clientOptions: BetterAuthClientOptions | undefined, options: ElectronClientOptions, cfg?: ElectronRequest
packages/electron/src/authenticate.ts:37
↓ 2 callersFunctionrequestConfirmation
(input: { body?: Record<string, string>; accept?: string; origin?: string; })
packages/oauth-provider/src/logout.test.ts:107
↓ 2 callersFunctionrequestEndSession
(input: { method?: "GET" | "POST"; query?: Record<string, string>; body?: Record<string, string>; acce
packages/oauth-provider/src/logout.test.ts:74
↓ 2 callersFunctionrequestHeaders
()
packages/better-auth/src/api/routes/account.test.ts:2896
↓ 2 callersFunctionrequestSCIM
( path: string, input: { bearerToken?: string; body?: unknown; method?: "GET" | "POST" | "PUT" |
demo/nextjs/app/dashboard/scim/settings.tsx:733
↓ 2 callersFunctionrequestUrl
(input: RequestInfo | URL)
packages/mcp/src/mcp.test.ts:38
↓ 2 callersFunctionrequireAccessTokenClientId
( accessTokenClaims: VerifiedMcpAccessTokenClaims, )
packages/cimd/src/mcp-e2e.test.ts:48
↓ 2 callersFunctionrequireAccessTokenClientId
( accessTokenClaims: VerifiedMcpAccessTokenClaims, )
packages/mcp/src/mcp.test.ts:50
↓ 2 callersFunctionrequireActive
( resource: Record<string, unknown>, expected: boolean, subject: string, )
demo/nextjs/app/dashboard/scim/lifecycle-walkthrough.tsx:130
↓ 2 callersFunctionrequireListResponse
( value: unknown, subject: string, )
demo/nextjs/app/dashboard/scim/settings.tsx:397
↓ 2 callersFunctionrequireMembers
( resource: Record<string, unknown>, expectedIds: string[], subject: string, )
demo/nextjs/app/dashboard/scim/lifecycle-walkthrough.tsx:140
↓ 2 callersFunctionrequireResource
( value: unknown, schema: typeof SCIM_USER_SCHEMA | typeof SCIM_GROUP_SCHEMA, subject: string, )
demo/nextjs/app/dashboard/scim/settings.tsx:381
↓ 2 callersFunctionrequireSCIMSubject
( adapter: Pick<DBAdapter, "findOne">, userId: string, )
packages/scim/src/user-provisioning.ts:412
↓ 2 callersFunctionrequireSuccessfulSSOAuthentication
( result: SSOAuthenticationResult, )
packages/sso/src/user-resolution.ts:152
↓ 2 callersFunctionresolveAccessTokenValidation
* We don't know the access token format so we try to validate it as a JWT * first, then as an opaque token. Returns the RFC 7662 introspection payloa
packages/oauth-provider/src/introspect.ts:510
↓ 2 callersFunctionresolveBaseURL
( config: BaseURLConfig | undefined, basePath: string, source?: Request | Headers, loadEnv?: boolean, tru
packages/better-auth/src/utils/url.ts:451
↓ 2 callersFunctionresolveClientRegistrationScopes
(opts: OAuthOptions<Scope[]>)
packages/oauth-provider/src/register.ts:68
↓ 2 callersFunctionresolveDynamicBaseURL
( config: DynamicBaseURLConfig, source: Request | Headers, basePath: string, trustedProxyHeaders?: boolean
packages/better-auth/src/utils/url.ts:398
↓ 2 callersFunctionresolveDynamicRegistrationDefaultApplicationType
* Server-owned default for dynamic registrations that omit `application_type`. * `"infer"` classifies as native when any redirect URI uses a non-http
packages/oauth-provider/src/register.ts:162
↓ 2 callersFunctionresolveDynamicTrustedProxyHeaders
( options: BetterAuthOptions, )
packages/better-auth/src/context/helpers.ts:198
↓ 2 callersFunctionresolveEnforcePerClientResources
* Resolves the effective {@link OAuthOptions.enforcePerClientResources} value. * * - Explicit `true | false` always wins (`source: "explicit"`). *
packages/oauth-provider/src/resources.ts:633
↓ 2 callersFunctionresolveExtensions
( extensions: PasskeyExtensionsResolver | undefined, ctx: GenericEndpointContext, )
packages/passkey/src/routes.ts:106
↓ 2 callersFunctionresolveManagedConnectionOptions
( options: SCIMManagedConnectionOptions, )
packages/scim/src/managed-connections.ts:787
↓ 2 callersFunctionresolveMutuallySupportedGrantTypes
* The requested grants this server supports. Clients such as MCP connectors * send one grant union to every server, so a metadata document or a dynam
packages/oauth-provider/src/register.ts:104
↓ 2 callersFunctionresolveOAuthAccountKeyForAPI
( provider: OAuthProvider<Profile>, tokens: OAuth2Tokens, profile: Profile, )
packages/better-auth/src/oauth2/account-key.ts:50
↓ 2 callersFunctionresolveOIDCProvider
* Resolves an SSO provider by `providerId`, first checking `options.defaultSSO` * and falling back to the `ssoProvider` table. Returns `null` when no
packages/sso/src/routes/sso.ts:1870
↓ 2 callersFunctionresolvePackage
( scope: string | undefined, changedFiles: string[], )
packages/release-tooling/src/change-classifier.ts:280
↓ 2 callersFunctionresolveRegistrationGrantTypes
( client: OAuthClientRegistrationMetadata, )
packages/oauth-provider/src/register.ts:77
↓ 2 callersFunctionresolveReportedDependencies
( projectRoot: string, dependencies: Record<string, string | undefined>, reportedDependencies: readonly Rep
packages/cli/src/commands/info.ts:19
↓ 2 callersFunctionresolveRequestContext
( ctx: AuthContext, source?: Request | Headers, trustedProxyHeaders?: boolean, )
packages/better-auth/src/context/helpers.ts:210
↓ 2 callersFunctionresolveResourceGrantIssuance
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, params: { clientId: string; requestedScopes
packages/oauth-provider/src/token.ts:803
↓ 2 callersFunctionresolveSCIMAttributePath
* Resolve a schema-qualified or explicitly supported input-alias path to the * attribute path used on one side of the wire (response serialization or
packages/scim/src/resource-schema-registry.ts:115
↓ 2 callersFunctionresolveSCIMCanonicalAttributePath
( resourceType: SCIMResourceType, attributePath: string, )
packages/scim/src/resource-schema-registry.ts:173
↓ 2 callersFunctionresolveSessionAuthTime
(value: unknown)
packages/oauth-provider/src/utils/index.ts:245
↓ 2 callersFunctionresolveSigningCerts
( config: Pick<SAMLConfig, "cert" | "idpMetadata">, )
packages/sso/src/saml/cert.ts:17
↓ 2 callersFunctionresolveTrustedRedirectUri
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, clientId: string | undefined, redirectUri: str
packages/oauth-provider/src/authorize.ts:357
↓ 2 callersFunctionresolveUserAccount
* Resolves an account from exactly one explicit source. * * A local account ID is resolved from the database. A signed account cookie is * used onl
packages/better-auth/src/api/routes/account.ts:632
↓ 2 callersFunctionresolveUserInfo
( tokens: OAuth2Tokens, idTokenClaims?: JWTPayload, )
packages/better-auth/src/plugins/generic-oauth/index.ts:370
↓ 2 callersFunctionresolveValidPrivateKeyJwtOptions
* Validates `private_key_jwt` options eagerly and returns the algorithm to * use for signing. * * Asserts that key material is configured, that any
packages/core/src/oauth2/client-assertion.ts:44
↓ 2 callersFunctionresourceIdentifier
(resource: string | OAuthResourceInput)
packages/mcp/src/plugin.ts:59
↓ 2 callersFunctionretrieveStripeSubscription
* Retrieve the subscription a row points to, or `null` if it no longer exists * (`resource_missing`) so callers can treat the row as stale. * @inter
packages/stripe/src/routes.ts:91
↓ 2 callersFunctionretryReset
(newPassword: string)
packages/better-auth/src/api/routes/password.test.ts:520
↓ 2 callersFunctionreviveDate
(value: unknown)
packages/core/src/utils/json.ts:5
↓ 2 callersFunctionrevokeUnprovenAccountAccess
( ctx: GenericEndpointContext, userId: string, )
packages/better-auth/src/db/revoke-unproven-account-access.ts:45
↓ 2 callersFunctionrevokedBeforeKey
(userId: string)
packages/better-auth/src/db/internal-adapter.ts:189
↓ 2 callersFunctionrewriteChangesetDescription
( context: ChangesetRewriteContext, generate: StructuredGenerator = generateStructured, )
packages/release-tooling/src/changesets/rewrite.ts:61
↓ 2 callersFunctionrewriteReleaseNotes
( contextPath: string, outputPath: string, generate: StructuredGenerator = generateStructured, )
packages/release-tooling/src/release-notes/rewrite.ts:170
↓ 2 callersFunctionroblox
(options: RobloxOptions)
packages/core/src/social-providers/roblox.ts:40
↓ 2 callersFunctionrole
( statements: TRoleStatements, )
packages/better-auth/src/plugins/access/access.ts:106
↓ 2 callersFunctionrootHtmlNodes
(content: string)
packages/release-tooling/src/release-notes/comment.ts:34
↓ 2 callersFunctionrotate
POSTs the rotation request the way a client would.
packages/oauth-provider/src/oauthClient/endpoints-rotate-keys.test.ts:83
↓ 2 callersFunctionrouter
( ctx: AuthContext, options: Option, )
packages/better-auth/src/api/index.ts:274
↓ 2 callersFunctionrunSCIMLifecycle
( options: SCIMLifecycleOptions, )
packages/test-utils/src/scim-lifecycle.ts:168
↓ 2 callersFunctions256Challenge
(verifier: string)
packages/electron/test/electron.test.ts:86
↓ 2 callersFunctionsamlBoundaryChanges
* Signing certificates are reported apart from the identity boundary: they * change who can sign assertions, so the mutation guard treats them as an
packages/sso/src/routes/providers.ts:135
↓ 2 callersFunctionsanitize
(input: string)
packages/better-auth/src/api/routes/error.ts:7
↓ 2 callersFunctionscalar
(name: string, isRequired = true)
packages/prisma-adapter/src/schema-check.test.ts:15
↓ 2 callersFunctionscanBatches
()
packages/redis-storage/src/redis-storage.ts:80
↓ 2 callersFunctionscanSCIMFilterTopLevel
( filter: string, )
packages/scim/src/collection-query.ts:250
↓ 2 callersFunctionscimHeaders
(token: string)
packages/scim/src/scim-managed-connections.test.ts:93
↓ 2 callersFunctionsec
(value: TimeString)
packages/better-auth/src/utils/time.ts:136
↓ 2 callersFunctionseedResources
( ctx: AuthContext, opts: OAuthOptions<Scope[]>, isComplete?: () => boolean, )
packages/oauth-provider/src/resources.ts:901
↓ 2 callersFunctionseedUsers
(count: number)
packages/scim/src/scim-read-limits.test.ts:153
↓ 2 callersFunctionselectAllJoins
(join: JoinConfig | undefined)
packages/kysely-adapter/src/kysely-adapter.ts:109
↓ 2 callersFunctionselectTokenEndpointAuthMethod
( doc: OIDCDiscoveryDocument, existing?: "client_secret_basic" | "client_secret_post" | "private_key_jwt", )
packages/sso/src/oidc/discovery.ts:768
↓ 2 callersFunctionserializeAuthorizationQuery
(query: OAuthAuthorizationQuery)
packages/oauth-provider/src/authorize.ts:1011
↓ 2 callersFunctionserve
(hostname: string, domains: string[])
packages/cimd/src/node.tls.test.ts:58
↓ 2 callersFunctionsessionCookie
(headers: Headers)
e2e/adapter/test/kysely-adapter/session-revocation-cutoff.mysql.test.ts:68
↓ 2 callersFunctionsetAccessToken
(token?: string)
demo/oidc-client/src/lib/auth/AuthProvider.tsx:33
↓ 2 callersFunctionsetActive
(userId: string, active: boolean)
packages/scim/src/scim-read-limits.test.ts:261
↓ 2 callersMethodsetAttribute
(name: string, value: string)
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:1867
← previousnext →1,501–1,600 of 6,486, ranked by callers