MCPcopy Create free account

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

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

↓ 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:1159
↓ 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:232
↓ 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:106
↓ 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 callersFunctionread
(store: string, delay: number)
packages/core/src/async_hooks/pure.index.test.ts:103
↓ 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
↓ 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:125
↓ 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 callersFunctionrecordFailedFetch
(clientId: string)
packages/cimd/src/resolver.ts:674
↓ 2 callersFunctionrecordTerminalFailure
(clientId: string)
packages/cimd/src/resolver.ts:481
↓ 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 callersFunctionrefresh
(refreshToken: string)
packages/oauth-provider/src/token.test.ts:1713
↓ 2 callersFunctionrefreshAdapter
(betterAuthOptions: BetterAuthOptions)
packages/test-utils/src/adapter/test-adapter.ts:96
↓ 2 callersFunctionrefreshJwks
* Refetches a fresh cached set, `current`, that lacks a token's key, such as a * newly rotated-in `kid`. Uses a set another request fetched after `cu
packages/core/src/oauth2/verify.ts:193
↓ 2 callersFunctionregister
()
packages/oauth-provider/src/resource-startup.test.ts:106
↓ 2 callersFunctionregisterClientMetadataDocument
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, input: RegisterClientMetadataDocumentInput, )
packages/oauth-provider/src/register.ts:1254
↓ 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:1521
↓ 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/cimd/src/metadata-refresh.test.ts:40
↓ 2 callersFunctionrequestUrl
(input: RequestInfo | URL)
packages/cimd/src/cross-origin-jwks-uri.test.ts:23
↓ 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:520
↓ 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:73
↓ 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:203
↓ 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 callersFunctionresolveMetadataStaleIfErrorMs
( value: number | string | undefined, )
packages/cimd/src/resolver.ts:140
↓ 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:109
↓ 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 callersFunctionresolveRefreshTokenSession
( ctx: GenericEndpointContext, refreshToken: Pick< OAuthRefreshToken<Scope[]>, "scopes" | "sessionId" |
packages/oauth-provider/src/utils/index.ts:322
↓ 2 callersFunctionresolveRegistrationGrantTypes
( client: OAuthClientRegistrationMetadata, )
packages/oauth-provider/src/register.ts:82
↓ 2 callersFunctionresolveReportedDependencies
( projectRoot: string, dependencies: Record<string, string | undefined>, reportedDependencies: readonly Rep
packages/cli/src/commands/info.ts:19
← previousnext →1,501–1,600 of 6,653, ranked by callers