MCPcopy Create free account

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

Functions3,880 in github.com/better-auth/better-auth

↓ 2 callersFunctiongetUserInfo
( tokens: OAuth2Tokens, finalUserInfoUrl: string | undefined, )
packages/better-auth/src/plugins/generic-oauth/routes.ts:790
↓ 2 callersFunctiongetUserPrimaryEmail
(userName: string, emails?: SCIMEmail[])
packages/scim/src/mappings.ts:32
↓ 2 callersFunctiongetVendorBaseURL
* Get base URL from vendor-specific environment variables
packages/better-auth/src/plugins/oauth-proxy/utils.ts:17
↓ 2 callersFunctiongetWindow
()
packages/electron/src/client.ts:185
↓ 2 callersFunctiongetZodDescription
(zodType: z.ZodType<unknown>)
packages/better-auth/src/plugins/open-api/generator.ts:160
↓ 2 callersFunctiongetZodPipeSchema
(zodType: z.ZodType<unknown>)
packages/better-auth/src/plugins/open-api/generator.ts:203
↓ 2 callersFunctiongroupImports
(imports: ImportGroup[])
packages/cli/src/commands/init/utility/imports.ts:94
↓ 2 callersFunctionhandleConsentFlow
* Helper to handle OIDC consent flow when required per OIDC spec
packages/better-auth/src/plugins/oidc-provider/oidc.test.ts:45
↓ 2 callersFunctionhandleOIDCCallback
* Core OIDC callback handler logic, shared between the per-provider and * shared callback endpoints. Resolves the provider, exchanges the * authoriz
packages/sso/src/routes/sso.ts:1463
↓ 2 callersFunctionhandleTransfer
( ctx: GenericEndpointContext, payload: { client_id: string; state: string; code_challenge: strin
packages/electron/src/index.ts:55
↓ 2 callersFunctionhasBetterAuthCookies
( setCookieHeader: string, cookiePrefix: string | string[], )
packages/electron/src/cookies.ts:114
↓ 2 callersFunctionhasBetterAuthCookies
( setCookieHeader: string, cookiePrefix: string | string[], )
packages/expo/src/client.ts:210
↓ 2 callersFunctionhasChangedField
( current: T | null | undefined, updated: T | null | undefined, fields: readonly (keyof T)[], )
packages/sso/src/routes/providers.ts:80
↓ 2 callersFunctionhasDependency
(packageJson: any, dependency: string)
packages/cli/src/utils/get-package-info.ts:43
↓ 2 callersFunctionhasPermissionFn
( input: HasPermissionBaseInput, acRoles: { [x: string]: Role<any> | undefined; }, )
packages/better-auth/src/plugins/organization/permission.ts:4
↓ 2 callersFunctionhasRequestState
()
packages/core/src/context/request-state.ts:42
↓ 2 callersFunctionhasRequiredRole
(memberRole: string, requiredRole: string[])
packages/scim/src/routes.ts:92
↓ 2 callersFunctionhasSAMLEncryptedAssertion
(samlContent: string)
packages/sso/src/saml/response-binding.ts:91
↓ 2 callersFunctionhasServerSessionStore
(options: BetterAuthOptions)
packages/better-auth/src/context/store-capabilities.ts:3
↓ 2 callersFunctionhashToBase64
( data: string | ArrayBuffer, )
packages/telemetry/src/utils/hash.ts:4
↓ 2 callersFunctioninsensitiveIn
(recordVal: unknown, values: unknown[])
packages/memory-adapter/src/query-builders.ts:13
↓ 2 callersFunctioninsertRandom
( model: M, count: Count = 1 as Count, )
packages/test-utils/src/adapter/create-test-suite.ts:532
↓ 2 callersFunctioninvalid
(errorKey: keyof typeof TWO_FACTOR_ERROR_CODES)
packages/better-auth/src/plugins/two-factor/verify-two-factor.ts:23
↓ 2 callersFunctioninvalidateRefreshFamily
( ctx: GenericEndpointContext, clientId: string, userId: string, )
packages/oauth-provider/src/token.ts:288
↓ 2 callersFunctionipToBytes
* Raw bytes of an IP for CIDR comparison. Returns `null` for an invalid IP.
packages/core/src/utils/ip.ts:203
↓ 2 callersFunctionisActive
(tab: Tab)
demo/nextjs/components/ui/tabs2.tsx:115
↓ 2 callersFunctionisDefaultConfigId
( configId: string | null | undefined, )
packages/api-key/src/routes/index.ts:76
↓ 2 callersFunctionisDocker
()
packages/telemetry/src/node.ts:187
↓ 2 callersFunctionisEmbedded
True when embedded cross-origin, where the cookie may be partitioned.
packages/better-auth/src/plugins/oauth-popup/client.ts:50
↓ 2 callersFunctionisIPv6
* Checks if an IP is IPv6
packages/core/src/utils/ip.ts:36
↓ 2 callersFunctionisKyselyDialect
(adapter: string)
packages/cli/src/commands/init/utility/database.ts:49
↓ 2 callersFunctionisLoopbackIP
(host: string)
packages/core/src/utils/host.ts:361
↓ 2 callersFunctionisNonEmptyOAuthId
( id: string | number | null | undefined, )
packages/better-auth/src/plugins/generic-oauth/routes.ts:34
↓ 2 callersFunctionisPKCERequired
( client: SchemaClient<Scope[]>, requestedScopes?: string[], )
packages/oauth-provider/src/utils/index.ts:658
↓ 2 callersFunctionisRedirectResponse
* Whether a response from a `redirect: "manual"` fetch is a redirect. * * Node/undici exposes the real 3xx status. Spec-compliant runtimes (Cloudfla
packages/core/src/oauth2/reject-redirects.ts:15
↓ 2 callersFunctionisSafeSAMLRedirectPath
(url: string)
packages/sso/src/utils.ts:6
↓ 2 callersMethodisStringLiteral
(node: unknown)
packages/cli/src/utils/get-config.ts:188
↓ 2 callersFunctionjitiOptions
(cwd: string)
packages/cli/src/utils/get-config.ts:266
↓ 2 callersFunctionjwtClient
(options?: JwtClientOptions)
packages/better-auth/src/plugins/jwt/client.ts:24
↓ 2 callersFunctionlastLoginMethodClient
(config: LastLoginMethodClientConfig)
packages/expo/src/plugins/last-login-method.ts:43
↓ 2 callersFunctionlastLoginMethodClient
( config: LastLoginMethodClientConfig = {}, )
packages/better-auth/src/plugins/last-login-method/client.ts:36
↓ 2 callersFunctionmakeStatelessAuth
()
packages/better-auth/src/api/routes/account.test.ts:2252
↓ 2 callersFunctionmakeWWWAuthenticate
(authURL: string, resource?: string)
packages/better-auth/src/plugins/mcp/client/index.ts:90
↓ 2 callersFunctionmapConcurrent
( items: readonly T[], fn: (item: T, index: number) => Awaitable<R>, options: MapConcurrentOptions, )
packages/core/src/utils/async.ts:20
↓ 2 callersFunctionmatchesAccountSelection
( ctx: GenericEndpointContext, account: Account, { resolvedUserId, providerId, accountId, }: { res
packages/better-auth/src/api/routes/account.ts:477
↓ 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:13
↓ 2 callersFunctionmcp
(options: MCPOptions)
packages/better-auth/src/plugins/mcp/index.ts:182
↓ 2 callersFunctionmcpHandler
( /** Resource is the same url as the audience */ verifyOptions: Parameters<typeof verifyAccessToken>[1], h
packages/oauth-provider/src/mcp.ts:13
↓ 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:114
↓ 2 callersFunctionmergeResponseHeaders
* Merge a set of response headers onto the dispatch's accumulator, appending * `set-cookie` (multiple cookies are legal) and replacing everything els
packages/better-auth/src/api/dispatch.ts:86
↓ 2 callersFunctionmodifyBetterAuthOptions
( opts: BetterAuthOptions, shouldRunMigrations: boolean, )
packages/test-utils/src/adapter/create-test-suite.ts:616
↓ 2 callersFunctionmodifyRefList
* Read-modify-write the ref list: * used only when the list is the source of truth.
packages/api-key/src/adapter.ts:276
↓ 2 callersFunctionmongodbClient
()
packages/better-auth/src/test-utils/test-instance.ts:96
↓ 2 callersFunctionms
(value: TimeString)
packages/better-auth/src/utils/time.ts:119
↓ 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:659
↓ 2 callersFunctionnormalizeDiscoveryUrls
( document: OIDCDiscoveryDocument, issuer: string, isTrustedOrigin: DiscoverOIDCConfigParams["isTrustedOrig
packages/sso/src/oidc/discovery.ts:457
↓ 2 callersFunctionnormalizeRoleName
(role: string)
packages/better-auth/src/plugins/organization/routes/crud-access-control.ts:24
↓ 2 callersFunctionnormalizeSCIMProvider
(provider: SCIMProvider)
packages/scim/src/routes.ts:136
↓ 2 callersFunctionnormalizeUrl
( name: string, endpoint: string, issuer: string, )
packages/sso/src/oidc/discovery.ts:558
↓ 2 callersFunctionoauthProviderAuthServerMetadata
( auth: Auth, opts?: { headers?: HeadersInit }, )
packages/oauth-provider/src/metadata.ts:142
↓ 2 callersFunctionoauthToSchema
(input: OAuthClient)
packages/oauth-provider/src/register.ts:302
↓ 2 callersFunctionofferSkillInstall
(skillName: string)
packages/cli/src/commands/ai.ts:647
↓ 2 callersFunctionoidcServerMetadata
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]> & { claims?: string[] }, )
packages/oauth-provider/src/metadata.ts:71
↓ 2 callersFunctiononChange
()
docs/hooks/use-mobile.ts:12
↓ 2 callersFunctiononFinish
(testName: string)
packages/test-utils/src/adapter/create-test-suite.ts:818
↓ 2 callersFunctiononSubmit
(e?: SyntheticEvent)
docs/components/ai-chat.tsx:421
↓ 2 callersFunctiononeTapClient
(options: GoogleOneTapOptions)
packages/better-auth/src/plugins/one-tap/client.ts:197
↓ 2 callersMethodoutput
* Retrieve the image that results from applying the transforms to the * provided input * @param options Options that apply to the output e.g. outp
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:7581
↓ 2 callersFunctionparse
(value: string)
packages/better-auth/src/utils/time.ts:38
↓ 2 callersFunctionparseAdditionalUserInputFromProviderProfile
( options: BetterAuthOptions, profile: Record<string, unknown> = {}, action: "create" | "update", )
packages/better-auth/src/db/schema.ts:225
↓ 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 callersFunctionparseMemberRoles
(role: string)
packages/scim/src/routes.ts:85
↓ 2 callersFunctionparsePrompt
(prompt: string)
packages/oauth-provider/src/utils/index.ts:546
↓ 2 callersFunctionparseSecretsEnv
( envValue: string | undefined, )
packages/better-auth/src/context/secret-utils.ts:16
↓ 2 callersFunctionphoneNumberClient
()
packages/better-auth/src/plugins/phone-number/client.ts:8
↓ 2 callersFunctionprefixHref
(href: string)
docs/components/docs/docs-sidebar.tsx:28
↓ 2 callersFunctionprocessJoinedResults
( rows: any[], joinConfig: JoinConfig | undefined, allSelectsStr: { joinModel: string; j
packages/kysely-adapter/src/kysely-adapter.ts:412
↓ 2 callersFunctionprocessSAMLResponse
( ctx: any, params: SAMLResponseParams, options?: SSOOptions, )
packages/sso/src/routes/saml-pipeline.ts:246
↓ 2 callersFunctionquotePostgresIdentifier
(identifier: string)
packages/better-auth/src/test-utils/test-instance.ts:55
↓ 2 callersFunctionrateLimitResponse
(retryAfter: number)
packages/better-auth/src/api/rate-limiter/index.ts:94
↓ 2 callersFunctionreadDriverRowCount
(result: unknown)
packages/drizzle-adapter/src/drizzle-adapter.ts:93
↓ 2 callersFunctionreadRootPackageJson
()
packages/telemetry/src/node.ts:22
↓ 2 callersFunctionreddit
(options: RedditOptions)
packages/core/src/social-providers/reddit.ts:24
↓ 2 callersFunctionredirectRefused
(endpoint: string)
packages/core/src/oauth2/reject-redirects.ts:22
↓ 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 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:94
↓ 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:7362
↓ 2 callersFunctionrequestAuth
( clientOptions: BetterAuthClientOptions | undefined, options: ElectronClientOptions, cfg?: ElectronRequest
packages/electron/src/authenticate.ts:34
↓ 2 callersFunctionrequestHeaders
(jar: Jar)
packages/better-auth/src/api/routes/account.test.ts:2303
↓ 2 callersMethodreserveVerificationValue
* First-writer-wins create keyed by a deterministic primary key derived from * `identifier`. Returns `true` when this caller created the row and `fa
packages/core/src/types/context.ts:251
↓ 2 callersFunctionresolveDynamicBaseURL
( config: DynamicBaseURLConfig, source: Request | Headers, basePath: string, trustedProxyHeaders?: boolean
packages/better-auth/src/utils/url.ts:398
↓ 2 callersFunctionresolveExtensions
( extensions: PasskeyExtensionsResolver | undefined, ctx: GenericEndpointContext, )
packages/passkey/src/routes.ts:52
↓ 2 callersFunctionresolveRequestContext
( ctx: AuthContext, source?: Request | Headers, trustedProxyHeaders?: boolean, )
packages/better-auth/src/context/helpers.ts:209
↓ 2 callersFunctionresolveSessionAuthTime
(value: unknown)
packages/oauth-provider/src/utils/index.ts:117
↓ 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:92
← previousnext →701–800 of 3,880, ranked by callers