MCPcopy Create free account

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

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

↓ 2 callersFunctionensureFieldIndex
(index: MongoFieldIndex)
packages/mongo-adapter/src/mongodb-adapter.ts:297
↓ 2 callersFunctionerrorRedirectUrl
( base: string, error: string, description: string, )
packages/sso/src/saml/response-validation.ts:6
↓ 2 callersFunctionescapeRegExpChar
* Escapes a character if it has a special meaning in regular expressions * and returns the character as is if it doesn't
packages/better-auth/src/utils/wildcard.ts:7
↓ 2 callersFunctionevaluateRateLimit
( apiKey: ApiKey, opts: PredefinedApiKeyOptions, )
packages/api-key/src/rate-limit.ts:47
↓ 2 callersFunctionexchangeOAuthCallback
( ctx: GenericEndpointContext, provider: OAuthProvider, callback: OAuthCallbackInput, )
packages/better-auth/src/oauth2/callback.ts:25
↓ 2 callersFunctionexisting
(issuer: string)
packages/cli/test/generate.test.ts:204
↓ 2 callersFunctionexpandSCIMPatchNullValues
( operations: readonly SCIMPatchOperation[], resolveTarget: (path: string) => SCIMPatchValueTarget, )
packages/scim/src/null-attributes.ts:187
↓ 2 callersFunctionexpectedOriginUnavailable
(ctx: GenericEndpointContext)
packages/passkey/src/routes.ts:98
↓ 2 callersFunctionexpireExistingChunks
()
packages/better-auth/src/cookies/session-store.ts:168
↓ 2 callersFunctionexpoClient
(opts: ExpoClientOptions)
packages/expo/src/client.ts:249
↓ 2 callersFunctionextractAuthorizationCode
( authedClient: ReturnType< typeof createAuthClient<{ plugins: [ReturnType<typeof oauthProviderClient>];
packages/cimd/src/flows.test.ts:71
↓ 2 callersFunctionextractIPv4FromMapped
* Converts IPv4-mapped IPv6 address to IPv4 * e.g., "::ffff:192.0.2.1" -> "192.0.2.1"
packages/core/src/utils/ip.ts:48
↓ 2 callersFunctionextractPresentedAccessToken
(request: Request)
packages/cimd/src/mcp-e2e.test.ts:60
↓ 2 callersFunctionextractPresentedAccessToken
(request: Request)
packages/mcp/src/mcp.test.ts:62
↓ 2 callersFunctionextractReleaseNotesComment
( content: string, expectedVersion: string, expectedHead: string, )
packages/release-tooling/src/release-notes/comment.ts:127
↓ 2 callersFunctionextractRepeatedResourceFromForm
( request: Request, )
packages/oauth-provider/src/resources.ts:229
↓ 2 callersFunctionextractTokenError
(error: APIError)
packages/oauth-provider/src/resource-challenge.ts:47
↓ 2 callersFunctionfacebook
(options: FacebookOptions)
packages/core/src/social-providers/facebook.ts:105
↓ 2 callersFunctionfail
(message: string, error?: unknown)
packages/cli/src/utils/get-config.ts:399
↓ 2 callersFunctionfail
(code: string, description?: string)
packages/better-auth/src/plugins/oauth-popup/index.ts:171
↓ 2 callersFunctionfail
(error: Error)
e2e/smoke/test/cloudflare.spec.ts:63
↓ 2 callersFunctionfailure
(message: string, fields: Record<string, unknown>)
packages/core/src/db/errors.test.ts:193
↓ 2 callersFunctionfetchClientMetadataDocument
( ctx: GenericEndpointContext, clientIdUrl: string, cimdOptions: CimdOptions, validators?: { etag?: string
packages/cimd/src/client-store.ts:202
↓ 2 callersFunctionfetchDiscoveryDocument
( url: string, timeout: number = DEFAULT_DISCOVERY_TIMEOUT, isTrustedOrigin: (url: string) => boolean = ()
packages/sso/src/oidc/discovery.ts:455
↓ 2 callersFunctionfetchOIDCEndpointResponse
( name: OIDCEndpointName, endpoint: string, init: RequestInit, isTrustedOrigin: (url: string) => boolean,
packages/sso/src/oidc/discovery.ts:381
↓ 2 callersFunctionfetchRefusingRedirects
( url: string, options?: BetterFetchOption, )
packages/core/src/oauth2/reject-redirects.ts:35
↓ 2 callersFunctionfetchUserImage
( baseURL: string | undefined, url: string, options?: Pick<ElectronClientOptions, "userImageProxy"> | undef
packages/electron/src/user.ts:17
↓ 2 callersMethodfindAccountOwnerByKey
(accountKey: AccountKey)
packages/core/src/types/context.ts:214
↓ 2 callersFunctionfindConsent
( ctx: GenericEndpointContext, clientId: string, userId: string, referenceId: string | undefined, )
packages/oauth-provider/src/utils/index.ts:1258
↓ 2 callersFunctionfindDeviceCodeByUserCode
* Preserve exact custom user codes, and normalize only default-alphabet codes.
packages/better-auth/src/plugins/device-authorization/routes.ts:49
↓ 2 callersFunctionfindInvalidTrustedProxies
(entries: string[])
packages/core/src/utils/ip.ts:300
↓ 2 callersFunctionfindJwtPlugin
(ctx: AuthContext)
packages/oauth-provider/src/utils/index.ts:107
↓ 2 callersFunctionfindManagedConnectionByCreationRequestId
( database: Pick<DBAdapter, "findOne">, creationRequestId: string, )
packages/scim/src/managed-connections.ts:353
↓ 2 callersFunctionfindMany
(input)
packages/scim/src/scim-read-limits.test.ts:43
↓ 2 callersFunctionfindNode
(obj: unknown, nodeName: string)
packages/sso/src/saml/parser.ts:10
↓ 2 callersFunctionfindOne
(query)
packages/sso/src/saml.test.ts:9210
↓ 2 callersFunctionfindOne
( query: Parameters<typeof base.findOne>[0], )
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:680
↓ 2 callersFunctionfindOrCreateSCIMConnectionBinding
( database: Pick<DBAdapter, "create" | "findOne">, connectionId: string, provisioningDomainId: string | und
packages/scim/src/connection-state.ts:19
↓ 2 callersFunctionfindPatchAttribute
( attributes: readonly SCIMPatchAttributeDescriptor[], name: string, )
packages/scim/src/user-patch.ts:390
↓ 2 callersFunctionfindPrismaSchemaProblems
( dataModel: PrismaRuntimeDataModel, options: BetterAuthOptions, usePlural?: boolean | undefined, )
packages/prisma-adapter/src/schema-check.ts:96
↓ 2 callersFunctionfindRegisteredRedirectUri
* Finds the matching entry in a client's registered redirect URIs. * * For clients that are not `web`, registration limits loopback redirects to *
packages/oauth-provider/src/authorize.ts:318
↓ 2 callersFunctionfindSCIMGroupMemberships
( database: DBTransactionAdapter, scimUserIds: readonly string[], )
packages/scim/src/projection.ts:75
↓ 2 callersFunctionfindSCIMGroups
( database: DBTransactionAdapter, groupIds: readonly string[], )
packages/scim/src/projection.ts:92
↓ 2 callersFunctionfindSCIMProjectionDomainBatch
(input: { database: Pick<DBAdapter, "findMany">; provisioningDomainId: string; cursorUserId?: string | null
packages/scim/src/projection.ts:667
↓ 2 callersFunctionfindSCIMUsersByIds
( adapter: Pick<DBAdapter, "findMany">, connectionId: string, scimUserIds: readonly string[], )
packages/scim/src/group-provisioning.ts:766
↓ 2 callersFunctionfindSCIMUsersForMemberships
( adapter: Pick<DBAdapter, "findMany">, connectionId: string, memberships: readonly SCIMGroupMember[], )
packages/scim/src/group-provisioning.ts:756
↓ 2 callersFunctionfindSchemaProblems
( db: Kysely<unknown>, dbType: KyselyDatabaseType | undefined, expected: ExpectedSchema, )
packages/kysely-adapter/src/schema-check.ts:204
↓ 2 callersFunctionfindTeamMemberByKeyOrPair
( adapter: DBTransactionAdapter, data: { teamId: string; userId: string; membershipKey: string; }, )
packages/better-auth/src/plugins/organization/adapter.ts:47
↓ 2 callersFunctionfindVersionCommit
( ref: string, previousTag: string, version: string, )
packages/release-tooling/src/release-notes/collect.ts:308
↓ 2 callersFunctionfindWhereValue
(where: readonly Where[], field: string)
packages/scim/src/scim-group-cardinality.test.ts:49
↓ 2 callersFunctionfn
(data)
packages/better-auth/src/db/internal-adapter.ts:931
↓ 2 callersFunctionformatAdapterLabel
(adapter: DatabaseAdapter)
packages/cli/src/commands/init/utility/database.ts:67
↓ 2 callersFunctionformatEnvelope
(version: number, ciphertext: string)
packages/better-auth/src/crypto/index.ts:31
↓ 2 callersFunctionformatErrorDescription
* Fits a runtime error message into RFC 6750 §3's `error_description` * character set instead of failing the response it describes: `"` becomes * `'
packages/oauth-provider/src/resource-challenge.ts:37
↓ 2 callersFunctionformatNumber
(num: number)
docs/app/community/community-client.tsx:127
↓ 2 callersFunctiongenerateBackupCodes
( secret: string | SecretConfig, options?: BackupCodeOptions | undefined, )
packages/better-auth/src/plugins/two-factor/backup-codes/index.ts:94
↓ 2 callersFunctiongenerateInnerAuthConfigCode
({ database, plugins, appName, baseURL, emailAndPassword, socialProviders, options, installDependency,
packages/cli/src/commands/init/utility/auth-config.ts:21
↓ 2 callersFunctiongenerateOpaqueValue
()
demo/nextjs/lib/scim-demo-employee.ts:111
↓ 2 callersMethodgenerateToken
* Creates a signed URL token for a video. * @returns The signed token that was created. * @throws {InternalError} if the signing key cannot be ret
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:15500
↓ 2 callersFunctiongeneratedCoverUrl
( title: string, date: Date | undefined, theme: "light" | "dark", )
docs/app/blog/[[...slug]]/page.tsx:25
↓ 2 callersFunctiongenerator
(ctx: AuthContext, options: BetterAuthOptions)
packages/better-auth/src/plugins/open-api/generator.ts:892
↓ 2 callersFunctionget
(identifier: string)
packages/better-auth/src/plugins/test-utils/otp-sink.ts:12
↓ 2 callersFunctiongetAccountCookie
(c: GenericEndpointContext)
packages/better-auth/src/cookies/session-store.ts:260
↓ 2 callersFunctiongetApiKey
( ctx: GenericEndpointContext, hashedKey: string, opts: PredefinedApiKeyOptions, )
packages/api-key/src/adapter.ts:443
↓ 2 callersFunctiongetApiKeyByIdFromStorage
* Get API key from secondary storage by ID
packages/api-key/src/adapter.ts:231
↓ 2 callersFunctiongetArgumentsPrompt
( options: Record<string, unknown>, plugins: PluginConfig[], target: "auth" | "authClient", )
packages/cli/src/commands/init/utility/prompt.ts:95
↓ 2 callersFunctiongetAssertionClockTolerance
(opts: OAuthOptions<Scope[]>)
packages/oauth-provider/src/utils/client-assertion.ts:361
↓ 2 callersFunctiongetAttribute
( attributes: readonly SchemaAttribute[], name: string, )
packages/scim/src/schema-conformance.test.ts:28
↓ 2 callersFunctiongetAuthClientPluginsCode
({ plugins, options = {}, installDependency, }: { plugins?: PluginConfig[]; options?: Record<string, unkn
packages/cli/src/commands/init/utility/plugin.ts:306
↓ 2 callersFunctiongetAuthPluginsCode
({ plugins, options = {}, installDependency, }: { plugins?: PluginConfig[]; options?: Record<string, unkn
packages/cli/src/commands/init/utility/plugin.ts:260
↓ 2 callersFunctiongetBackupCodes
( backupCodes: string, key: string | SecretConfig, options?: BackupCodeOptions | undefined, )
packages/better-auth/src/plugins/two-factor/backup-codes/index.ts:128
↓ 2 callersFunctiongetBaseAdapter
( options: BetterAuthOptions, handleDirectDatabase: ( options: BetterAuthOptions, ) => Promise<DBAdapter<
packages/better-auth/src/db/adapter-base.ts:7
↓ 2 callersFunctiongetBaseType
(type: any)
packages/better-auth/src/plugins/open-api/open-api.test.ts:822
↓ 2 callersFunctiongetBuiltinAsyncLocalStorage
()
packages/core/src/async_hooks/builtin.ts:1
↓ 2 callersFunctiongetClientIP
(req: Request)
docs/lib/ai-chat/rate-limit.ts:25
↓ 2 callersFunctiongetClientPublicEndpoint
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, clientId: string, )
packages/oauth-provider/src/oauthClient/endpoints.ts:68
↓ 2 callersFunctiongetColorDepth
()
packages/core/src/env/color-depth.ts:60
↓ 2 callersMethodgetCommitAuthors
(sha: string)
packages/release-tooling/src/github.ts:24
↓ 2 callersFunctiongetConfiguredIssuer
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/authorize.ts:203
↓ 2 callersFunctiongetConsentReferenceId
( opts: OAuthOptions<Scope[]>, context: Parameters< NonNullable<OAuthOptions<Scope[]>["postLogin"]>["conse
packages/oauth-provider/src/utils/index.ts:1243
↓ 2 callersFunctiongetCookie
(cookie: string | null)
packages/expo/src/client.ts:110
↓ 2 callersFunctiongetCookieCache
( request: Request | Headers, config?: | { cookiePrefix?: string; cookieName?: string; isSecur
packages/better-auth/src/cookies/index.ts:617
↓ 2 callersFunctiongetCookieCacheJwtIssuer
(ctx: GenericEndpointContext)
packages/better-auth/src/plugins/jwt/cookie-cache.ts:19
↓ 2 callersFunctiongetCookieHeader
(cookies: CookieJar)
packages/scim/src/scim-sso-http-e2e.test.ts:54
↓ 2 callersFunctiongetCurrentBrowserSession
( ctx: GenericEndpointContext, )
packages/oauth-provider/src/logout.ts:562
↓ 2 callersFunctiongetCurrentLogger
()
packages/core/src/env/logger.ts:149
↓ 2 callersFunctiongetCustomIdGenerator
(options: BetterAuthOptions)
packages/mongo-adapter/src/mongodb-adapter.ts:170
↓ 2 callersFunctiongetDefaultConfig
()
packages/api-key/src/routes/index.ts:52
↓ 2 callersFunctiongetDefaultSpecialRules
()
packages/better-auth/src/api/rate-limiter/index.ts:440
↓ 2 callersFunctiongetDeviceCodeOperation
(document: unknown)
packages/oauth-provider/src/device-code.test.ts:175
↓ 2 callersFunctiongetDirectoryUser
(userKey: SCIMDemoUserKey)
demo/nextjs/lib/scim-demo-oidc.ts:170
↓ 2 callersFunctiongetDpopProofJwt
( ctx: Pick<GenericEndpointContext, "headers">, )
packages/oauth-provider/src/dpop.ts:4
↓ 2 callersFunctiongetEnvFiles
(cwd: string)
packages/cli/src/commands/init/utility/env.ts:4
↓ 2 callersFunctiongetExpectedOrigins
( options: PasskeyOptions, ctx: GenericEndpointContext, clientDataJSON: unknown, )
packages/passkey/src/utils.ts:32
↓ 2 callersFunctiongetExtensionTokenEndpointAuthMethods
( opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/extensions.ts:314
↓ 2 callersFunctiongetFailedSSOAuthenticationResult
( error: unknown, )
packages/sso/src/user-resolution.ts:162
↓ 2 callersFunctiongetFocusableElements
()
docs/components/docs/docs-sidebar.tsx:103
↓ 2 callersFunctiongetGooglePublicKeys
(kid?: string)
packages/core/src/social-providers/google.ts:285
↓ 2 callersFunctiongetIPFromHeader
( value: string, options: { ipv6Subnet?: number; trustedProxies?: string[]; } = {}, )
packages/core/src/utils/ip.ts:310
↓ 2 callersFunctiongetIdTokenVerifyOptions
(options: { issuer?: (string | string[]) | undefined; audience: string | string[]; algorithms?: string[] |
packages/core/src/oauth2/verify-id-token.ts:29
← previousnext →1,201–1,300 of 6,819, ranked by callers