MCPcopy Create free account

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

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

↓ 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:90
↓ 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:370
↓ 2 callersFunctiongetApiKeyByIdFromStorage
* Get API key from secondary storage by ID
packages/api-key/src/adapter.ts:229
↓ 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:72
↓ 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:124
↓ 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 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 callersFunctiongetConsentReferenceId
( opts: OAuthOptions<Scope[]>, context: Parameters< NonNullable<OAuthOptions<Scope[]>["postLogin"]>["conse
packages/oauth-provider/src/utils/index.ts:1175
↓ 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:560
↓ 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:172
↓ 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:267
↓ 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
↓ 2 callersFunctiongetIssuedOriginIdentifier
(state: string)
packages/expo/src/routes.ts:12
↓ 2 callersFunctiongetJoinRelationKey
( baseModel: string, joinModel: string, baseModelKey: string, joinModelKey: string, relati
packages/drizzle-adapter/src/drizzle-adapter.ts:769
↓ 2 callersFunctiongetJoinRelationKey
( baseModel: string, joinModel: string, baseModelKey: string, joinModelKey: string, relati
packages/drizzle-adapter/src/relations-v2/index.ts:350
↓ 2 callersFunctiongetJwksCache
(opts: OAuthOptions<Scope[]>)
packages/oauth-provider/src/utils/client-assertion.ts:55
↓ 2 callersFunctiongetJwksCacheKey
(client: SchemaClient<Scope[]>)
packages/oauth-provider/src/utils/client-assertion.ts:63
↓ 2 callersFunctiongetJwksForVerification
( token: string, opts: JwksFetchOptions, )
packages/core/src/oauth2/verify.ts:422
↓ 2 callersFunctiongetJwtPluginOptions
()
packages/oauth-provider/src/client-resource.ts:53
↓ 2 callersFunctiongetKyselyDatabaseType
( db: BetterAuthOptions["database"], )
packages/kysely-adapter/src/dialect.ts:13
↓ 2 callersFunctiongetLLMText
( docPage: InferPageType<typeof source>, version?: DocsVersion, )
docs/lib/llm-text.ts:101
↓ 2 callersFunctiongetLLMsIndex
( loader: typeof source, version?: DocsVersion, )
docs/lib/llm-text.ts:212
↓ 2 callersFunctiongetLLMsIndexTitle
(version?: DocsVersion)
docs/lib/llm-text.ts:127
↓ 2 callersFunctiongetLegacyMarkdownTarget
(slug: string[])
docs/lib/llm-text.ts:174
↓ 2 callersFunctiongetLoadedConfig
({ cwd, configPath, outputPath, shouldThrowOnError = false, }: ConfigInput)
packages/cli/src/utils/get-config.ts:393
↓ 2 callersFunctiongetLocalJwksSource
( context: AuthContext, request?: Request | undefined, )
packages/oauth-provider/src/utils/index.ts:166
↓ 2 callersFunctiongetMissingEnvVars
( envFiles: Map<string, string[]>, envVar: string | string[], )
packages/cli/src/commands/init/utility/env.ts:47
↓ 2 callersFunctiongetMssqlSchema
(db: Kysely<unknown>)
packages/kysely-adapter/src/schema-check.ts:111
↓ 2 callersFunctiongetOAuthProviderPlugin
(ctx: AuthContext)
packages/oauth-provider/src/utils/index.ts:100
↓ 2 callersFunctiongetORMFromAdapter
(adapter: DatabaseAdapter)
packages/cli/src/commands/init/utility/database.ts:28
↓ 2 callersFunctiongetOauthProviderPlugin
()
packages/oauth-provider/src/client-resource.ts:40
↓ 2 callersFunctiongetOperationId
(endpoint: Endpoint, fallback?: string)
packages/better-auth/src/api/dispatch.ts:66
↓ 2 callersFunctiongetOrCreateEndpointContextStorage
()
packages/core/src/context/endpoint-context.ts:21
↓ 2 callersFunctiongetOrganizationId
( params: Promise<{ organizationId: string }>, )
demo/nextjs/app/api/scim-demo/organizations/[organizationId]/connections/route.ts:35
↓ 2 callersFunctiongetOtherSlot
(slot: ChunkSlot)
packages/expo/src/client-storage.ts:127
↓ 2 callersFunctiongetPackageVersion
(pkg: string)
packages/telemetry/src/node.ts:44
↓ 2 callersFunctiongetPackageVersion
( _pkg: string, )
packages/telemetry/src/utils/package-json.ts:5
↓ 2 callersFunctiongetPasskeyActions
( $fetch: BetterFetch, { $listPasskeys, $store, }: { $listPasskeys: ReturnType<typeof atom<any>>; $
packages/passkey/src/client.ts:35
↓ 2 callersFunctiongetPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string, )
demo/nextjs/components/ui/chart.tsx:293
↓ 2 callersFunctiongetPendingDiscovery
(ctx: AuthContext)
packages/better-auth/src/plugins/generic-oauth/index.ts:104
↓ 2 callersFunctiongetPersistedUser
( data: ReturnType<typeof createTestContext>["data"], scimUserId: string, )
packages/scim/src/scim-user-patch.test.ts:61
↓ 2 callersFunctiongetPluginConfigs
(plugins: Plugin[])
packages/cli/src/commands/init/utility/plugin.ts:8
↓ 2 callersFunctiongetPostgresSchema
(db: Kysely<unknown>)
packages/kysely-adapter/src/schema-check.ts:104
↓ 2 callersFunctiongetProtocolFromSource
( source: Request | Headers, configProtocol?: "http" | "https" | "auto" | undefined, trustedProxyHeaders?:
packages/better-auth/src/utils/url.ts:308
↓ 2 callersFunctiongetProviderSource
(provider: ReferencedProvider)
packages/sso/src/provider-reference.ts:84
↓ 2 callersFunctiongetQueryModel
* Resolve the db.query key for a model. * * When `usePlural` is false (default), Better Auth uses singular model * names like "user", but
packages/drizzle-adapter/src/drizzle-adapter.ts:743
↓ 2 callersFunctiongetQueryModel
* Resolve the `db.query` key for a model. * * `db.query` is keyed by the Drizzle schema export names, which are * often plural ("users") e
packages/drizzle-adapter/src/relations-v2/index.ts:320
↓ 2 callersFunctiongetRegisterSSOProviderBodySchema
(options?: SSOOptions)
packages/sso/src/routes/schemas.ts:321
↓ 2 callersFunctiongetRelationKeysByModel
()
packages/drizzle-adapter/src/drizzle-adapter.ts:190
↓ 2 callersFunctiongetRelationKeysByModel
()
packages/drizzle-adapter/src/relations-v2/index.ts:280
↓ 2 callersMethodgetReleaseBody
(tag: string)
packages/release-tooling/src/github.ts:25
↓ 2 callersFunctiongetResolvedModelIndexes
(model: string, modelKey: string)
packages/mongo-adapter/src/mongodb-adapter.ts:191
↓ 2 callersFunctiongetRetryAfter
(lastRequest: number, window: number)
packages/better-auth/src/api/rate-limiter/index.ts:110
↓ 2 callersFunctiongetRootLLMsIndex
(versions: readonly DocsVersion[])
docs/lib/llm-text.ts:142
↓ 2 callersFunctiongetRuntimeName
()
packages/core/src/env/runtime.ts:29
↓ 2 callersFunctiongetSAMLRedirectCandidates
( relayStateCallbackUrl: string | undefined, samlConfig: SAMLConfig | undefined, samlOptions: SSOOptions["s
packages/sso/src/routes/saml-pipeline.ts:192
↓ 2 callersFunctiongetSCIMDemoEmployeePortalIdentity
( database: Pick<DBAdapter<Options>, "findOne">, store: Pick<SCIMDemoEmployeeVerificationStore, "findVerific
demo/nextjs/lib/scim-demo-employee.ts:539
↓ 2 callersFunctiongetSCIMDemoEmployeePortalIdentityByToken
( database: Pick<DBAdapter<Options>, "findOne">, store: Pick<SCIMDemoEmployeeVerificationStore, "findVerific
demo/nextjs/lib/scim-demo-employee.ts:498
↓ 2 callersFunctiongetSCIMDemoEmployeePortalToken
( cookieHeader: string | null, )
demo/nextjs/lib/scim-demo-employee.ts:532
↓ 2 callersFunctiongetSCIMDemoOIDCAuthorizationFormFields
( request: SCIMDemoOIDCAuthorizationRequest, )
demo/nextjs/lib/scim-demo-oidc.ts:304
↓ 2 callersFunctiongetSCIMDemoOIDCAuthorizationView
( searchParams: SCIMDemoOIDCSearchParams, identity: SCIMDemoEmployeeIdentity, )
demo/nextjs/lib/scim-demo-oidc.ts:254
↓ 2 callersFunctiongetSCIMDemoOIDCClientSecret
()
demo/nextjs/lib/scim-demo-oidc.ts:328
↓ 2 callersFunctiongetSCIMDemoOIDCIssuer
()
demo/nextjs/lib/scim-demo-identity.ts:162
↓ 2 callersFunctiongetSCIMDemoOIDCRedirectURI
()
demo/nextjs/lib/scim-demo-oidc.ts:324
↓ 2 callersFunctiongetSSOProviderAdditionalFields
(options?: SSOOptions)
packages/sso/src/routes/schemas.ts:20
↓ 2 callersFunctiongetSSOProviderAdditionalFields
(options?: SSOOptions)
packages/sso/src/routes/providers.ts:374
↓ 2 callersFunctiongetSSOProviderAdditionalFieldsSchema
(options?: SSOOptions)
packages/sso/src/routes/schemas.ts:27
← previousnext →1,201–1,300 of 6,486, ranked by callers