MCPcopy Create free account

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

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

↓ 4 callersFunctiongenerateSchema
(opts: { adapter: DBAdapter; file?: string; options: BetterAuthOptions; })
packages/cli/src/generators/index.ts:13
↓ 4 callersFunctiongetAdditionalFields
( options: O, shouldBePartial: AllPartial = false as AllPartial, )
packages/better-auth/src/plugins/organization/routes/crud-access-control.ts:27
↓ 4 callersFunctiongetAuthoritativeSessionFromCtx
( ctx: GenericEndpointContext, )
packages/better-auth/src/api/routes/session.ts:619
↓ 4 callersFunctiongetBooleanEnvVar
(key: string, fallback = true)
packages/core/src/env/env-impl.ts:89
↓ 4 callersFunctiongetCallbackURL
( queryParams: ReadonlyURLSearchParams, )
demo/nextjs/lib/shared.ts:8
↓ 4 callersFunctiongetChannelPrefixWithDelimiter
(ns: string = "better-auth")
packages/electron/src/utils.ts:23
↓ 4 callersFunctiongetConfig
({ cwd, configPath, outputPath, shouldThrowOnError = false, }: { cwd: string; configPath?: string; /**
packages/cli/src/utils/get-config.ts:367
↓ 4 callersFunctiongetDatabaseCode
( adapter: A, )
packages/cli/src/commands/init/utility/database.ts:7
↓ 4 callersFunctiongetFlagVariable
(flag: string)
packages/cli/src/commands/init/utility/prompt.ts:5
↓ 4 callersFunctiongetGlobalBroadcastChannel
(name = "better-auth.message")
packages/better-auth/src/client/broadcast-channel.ts:69
↓ 4 callersFunctiongetGlobalOnlineManager
()
packages/better-auth/src/client/online-manager.ts:50
↓ 4 callersFunctiongetIp
( req: Request | Headers, options: BetterAuthOptions, )
packages/core/src/utils/ip.ts:350
↓ 4 callersFunctiongetIssuer
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/authorize.ts:122
↓ 4 callersFunctiongetJwksAdapter
( baseAdapter: DBAdapter<BetterAuthOptions>, options?: JwtOptions, )
packages/better-auth/src/plugins/jwt/adapter.ts:9
↓ 4 callersFunctiongetPlans
( subscriptionOptions: StripeOptions["subscription"], )
packages/stripe/src/utils.ts:4
↓ 4 callersFunctiongetQueryClient
()
demo/nextjs/data/query-client.ts:34
↓ 4 callersFunctiongetRpID
(options: PasskeyOptions, baseURL?: string | undefined)
packages/passkey/src/utils.ts:3
↓ 4 callersFunctiongetTelemetryAuthConfig
( options: BetterAuthOptions, context?: TelemetryContext | undefined, )
packages/telemetry/src/detectors/detect-auth-config.ts:4
↓ 4 callersFunctiongetTrustedOrigins
( options: BetterAuthOptions, request?: Request, )
packages/better-auth/src/context/helpers.ts:108
↓ 4 callersFunctiongetUrl
* Converts a relative URL to an absolute URL using baseURL. * @internal
packages/stripe/src/routes.ts:78
↓ 4 callersFunctiongetUserFullName
(email: string, name?: SCIMName)
packages/scim/src/mappings.ts:19
↓ 4 callersFunctionhandleSubmit
(e: React.FormEvent)
demo/nextjs/app/(auth)/device/page.tsx:21
↓ 4 callersFunctionhandler
(request: Request)
packages/better-auth/src/integrations/next-js.ts:15
↓ 4 callersFunctionhandler
(fn)
packages/better-auth/src/plugins/mcp/client/index.ts:237
↓ 4 callersFunctionhandler
()
docs/components/landing/staggered-nav-files.tsx:351
↓ 4 callersMethodinit
()
packages/kysely-adapter/src/d1-sqlite-dialect.ts:49
↓ 4 callersFunctioninitGetFieldName
({ schema, usePlural, }: { schema: BetterAuthDBSchema; usePlural: boolean | undefined; })
packages/core/src/db/adapter/get-field-name.ts:5
↓ 4 callersFunctionisAPIError
(error: unknown)
packages/api-key/src/utils.ts:8
↓ 4 callersFunctionisLoopbackHost
(host: string)
packages/core/src/utils/host.ts:381
↓ 4 callersFunctionisPromise
(obj?: unknown)
packages/better-auth/src/utils/is-promise.ts:1
↓ 4 callersFunctionisPublicRoutableHost
(host: string)
packages/core/src/utils/host.ts:414
↓ 4 callersFunctionisSafeUrlScheme
(value: string)
packages/core/src/utils/url.ts:68
↓ 4 callersFunctionisStateful
(ctx: GenericEndpointContext)
packages/better-auth/src/api/routes/session.ts:540
↓ 4 callersMethodlinkAccount
( account: Omit<Account, "id" | "createdAt" | "updatedAt"> & Partial<Account>, )
packages/core/src/types/context.ts:188
↓ 4 callersMethodlistUsers
( limit?: number | undefined, offset?: number | undefined, sortBy?: { field: string; direction: "asc" |
packages/core/src/types/context.ts:113
↓ 4 callersFunctionmissingEmailLogMessage
( providerId: string, options?: { source?: "id_token" | "generic" }, )
packages/better-auth/src/oauth2/errors.ts:32
↓ 4 callersFunctionmongodbAdapter
( db: Db, config?: MongoDBAdapterConfig | undefined, )
packages/mongo-adapter/src/mongodb-adapter.ts:63
↓ 4 callersFunctionnormalizeIP
( ip: string, options: NormalizeIPOptions = {}, )
packages/core/src/utils/ip.ts:174
↓ 4 callersFunctionnormalizePathname
( requestUrl: string, basePath: string, )
packages/core/src/utils/url.ts:17
↓ 4 callersFunctionnormalizePem
(key: string | undefined)
packages/sso/src/utils.ts:104
↓ 4 callersFunctionnormalizer
(username: string)
packages/better-auth/src/plugins/username/index.ts:125
↓ 4 callersFunctionoauthProviderResourceClient
( auth?: T, )
packages/oauth-provider/src/client-resource.ts:23
↓ 4 callersFunctionoidcClient
()
packages/better-auth/src/plugins/oidc-provider/client.ts:9
↓ 4 callersFunctionopenAPI
(options?: O | undefined)
packages/better-auth/src/plugins/open-api/index.ts:102
↓ 4 callersFunctionparsePrompt
(prompt: string)
packages/better-auth/src/plugins/oidc-provider/utils/prompt.ts:11
↓ 4 callersFunctionparseURL
* Parses the given URL or throws in case of invalid or unsupported protocols * * @param name the url name * @param endpoint the endpoint url * @pa
packages/sso/src/oidc/discovery.ts:589
↓ 4 callersFunctionparseUserInput
( options: BetterAuthOptions, user: Record<string, any> = {}, action: "create" | "update", )
packages/better-auth/src/db/schema.ts:216
↓ 4 callersFunctionresolveMethod
(ctx: GenericEndpointContext)
packages/better-auth/src/plugins/last-login-method/index.ts:97
↓ 4 callersFunctionresolveQuantity
( items: Stripe.SubscriptionItem[], planItem: Stripe.SubscriptionItem, seatPriceId?: string, )
packages/stripe/src/utils.ts:59
↓ 4 callersFunctionresolveRequiredRoles
( ctx: GenericEndpointContext, opts: SCIMOptions, )
packages/scim/src/routes.ts:99
↓ 4 callersFunctionsafeCloneRequest
(request?: Request)
packages/better-auth/src/utils/request.ts:1
↓ 4 callersFunctionsetAccountCookie
( c: GenericEndpointContext, accountData: Record<string, any>, )
packages/better-auth/src/cookies/session-store.ts:229
↓ 4 callersFunctionsetApiKey
( ctx: GenericEndpointContext, apiKey: ApiKey, opts: PredefinedApiKeyOptions, )
packages/api-key/src/adapter.ts:508
↓ 4 callersFunctionsetApiKeyInStorage
( _ctx: GenericEndpointContext, apiKey: ApiKey, storage: SecondaryStorage, ttl: number | undefined, opts:
packages/api-key/src/adapter.ts:302
↓ 4 callersFunctionsignJWT
( ctx: GenericEndpointContext, config: { options?: JwtOptions | undefined; payload: JWTPayloadWithOption
packages/better-auth/src/plugins/jwt/sign.ts:64
↓ 4 callersFunctionsplitSetCookieHeader
(setCookie: string)
packages/better-auth/src/cookies/cookie-utils.ts:53
↓ 4 callersFunctionsplitWords
(input: string)
packages/core/src/utils/string.ts:9
↓ 4 callersFunctionstart
()
packages/sso/src/saml.test.ts:600
↓ 4 callersFunctionstoreOTP
( ctx: GenericEndpointContext, opts: EmailOTPOptions, otp: string, )
packages/better-auth/src/plugins/email-otp/otp-token.ts:11
↓ 4 callersFunctionstoreToken
( storageMethod: OAuthOptions<Scope[]>["storeTokens"] = "hashed", token: string, type: StoreTokenType, )
packages/oauth-provider/src/utils/index.ts:346
↓ 4 callersFunctiontoExpJWT
( expirationTime: number | Date | string, iat: number, )
packages/better-auth/src/plugins/jwt/utils.ts:18
↓ 4 callersFunctiontoNodeArray
(value: unknown)
packages/sso/src/saml/response-binding.ts:23
↓ 4 callersMethodtransform
* Apply transform next, returning a transform handle. * You can then apply more transformations, draw, or retrieve the output. * @param transform
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:7565
↓ 4 callersFunctiontriggerRefetch
( event?: | { event?: "poll" | "visibilitychange" | "storage"; } | undefined, )
packages/better-auth/src/client/session-refresh.ts:57
↓ 4 callersFunctiontrimTrailingSlashes
(value: string)
packages/better-auth/src/utils/url.ts:32
↓ 4 callersFunctiontwoFactorClient
( options?: | { /** * the page to redirect if a user needs to verify * their two factor
packages/better-auth/src/plugins/two-factor/client.ts:9
↓ 4 callersFunctionunsubscribe
()
packages/better-auth/src/plugins/admin/admin.test.ts:862
↓ 4 callersMethodupdatePassword
(userId: string, password: string)
packages/core/src/types/context.ts:203
↓ 4 callersFunctionuseAuthQuery
( initializedAtom: | PreinitializedWritableAtom<any> | PreinitializedWritableAtom<any>[], path: string,
packages/better-auth/src/client/query.ts:36
↓ 4 callersFunctionuseCarousel
()
demo/nextjs/components/ui/carousel.tsx:34
↓ 4 callersFunctionuseChatContext
()
docs/components/ai-chat.tsx:44
↓ 4 callersFunctionuseFormField
()
docs/components/ui/form.tsx:42
↓ 4 callersFunctionuseFormField
()
demo/nextjs/components/ui/form.tsx:42
↓ 4 callersFunctionversionedDocsHref
(path: string, version: DocsVersion)
docs/lib/docs-versions.ts:56
↓ 4 callersFunctionwarnIfCookiePluginNotLast
( ctx: AuthContext, pluginId: string, )
packages/better-auth/src/integrations/cookie-plugin-guard.ts:10
↓ 3 callersMethodabort
()
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:2069
↓ 3 callersFunctionapiKeyClient
()
packages/api-key/src/client.ts:8
↓ 3 callersFunctionapplyDefaultAccessTokenExpiry
( tokens: OAuth2Tokens, accessTokenExpiresIn: number | undefined, )
packages/core/src/oauth2/utils.ts:38
↓ 3 callersFunctionassertTwoFactorNotLocked
( ctx: GenericEndpointContext, twoFactorTable: string, twoFactor: TwoFactorTable, )
packages/better-auth/src/plugins/two-factor/verify-two-factor.ts:228
↓ 3 callersFunctionauthServerMetadata
( ctx: GenericEndpointContext, opts?: JwtOptions, overrides?: { scopes_supported?: AuthServerMetadata["sc
packages/oauth-provider/src/metadata.ts:13
↓ 3 callersFunctioncleanup
()
packages/better-auth/src/client/session-refresh.ts:153
↓ 3 callersFunctionclientAllowsGrant
( client: Pick<SchemaClient<Scope[]>, "grantTypes">, grantType: GrantType, )
packages/oauth-provider/src/utils/index.ts:427
↓ 3 callersFunctioncn
(...inputs: ClassValue[])
demo/oidc-client/src/lib/utils.ts:5
↓ 3 callersFunctioncompileMigrations
()
packages/better-auth/src/db/get-migration.ts:564
↓ 3 callersMethodconnect
* Connect directly to Hyperdrive as if it's your database, returning a TCP socket. * * Calling this method returns an idential socket to if you ca
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:7413
↓ 3 callersFunctionconvertImageToBase64
(file: File)
demo/nextjs/lib/utils.ts:9
↓ 3 callersFunctionconvertSelect
( select: string[] | undefined, model: string, join?: JoinConfig | undefined, )
packages/prisma-adapter/src/prisma-adapter.ts:93
↓ 3 callersFunctioncreateCookieGetter
(options: BetterAuthOptions)
packages/better-auth/src/cookies/index.ts:40
↓ 3 callersFunctioncreateIdP
(config: SAMLConfig)
packages/sso/src/routes/helpers.ts:104
↓ 3 callersFunctioncreateOAuthClientEndpoint
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, settings: { isRegister: boolean; }, )
packages/oauth-provider/src/register.ts:199
↓ 3 callersFunctioncreateSAMLPostForm
( action: string, samlParam: string, samlValue: string, relayState?: string, )
packages/sso/src/routes/helpers.ts:153
↓ 3 callersFunctioncreateSP
( config: SAMLConfig, baseURL: string, providerId: string, opts?: { clockSkew?: number; relayState?: s
packages/sso/src/routes/helpers.ts:42
↓ 3 callersFunctioncreateStripeMock
( overrides: { customerId?: string; customerEmail?: string; checkoutSessionId?: string; } = {}, )
packages/stripe/test/_fixtures.ts:33
↓ 3 callersFunctioncreateTelemetry
( options: BetterAuthOptions, context?: TelemetryContext | undefined, )
packages/telemetry/src/node.ts:305
↓ 3 callersFunctioncreateUserTokens
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, params: CreateUserTokensParams, )
packages/oauth-provider/src/token.ts:474
↓ 3 callersFunctioncustomFetchImpl
(url, init)
packages/electron/test/utils.ts:85
↓ 3 callersFunctiondecodeRefreshToken
( opts: OAuthOptions<Scope[]>, token: string, )
packages/oauth-provider/src/token.ts:219
↓ 3 callersFunctiondecryptOAuthToken
(token: string, ctx: AuthContext)
packages/better-auth/src/oauth2/utils.ts:12
↓ 3 callersFunctiondecryptStoredClientSecret
( ctx: GenericEndpointContext, storageMethod: OAuthOptions<Scope[]>["storeClientSecret"], storedClientSecre
packages/oauth-provider/src/utils/index.ts:213
↓ 3 callersFunctiondeepEqual
* Deep equality comparison for BetterAuthOptions. * Handles nested objects, arrays, and primitive values.
packages/test-utils/src/adapter/create-test-suite.ts:47
← previousnext →301–400 of 3,880, ranked by callers