MCPcopy Create free account

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

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

↓ 6 callersFunctionparseJSON
( value: unknown, options: ParseOptions = { strict: true }, )
packages/better-auth/src/client/parser.ts:164
↓ 6 callersFunctionredirect
(url: string)
packages/better-auth/src/oauth2/state.test.ts:42
↓ 6 callersFunctionresolvePlanItem
( options: StripeOptions, items: Stripe.SubscriptionItem[], )
packages/stripe/src/utils.ts:78
↓ 6 callersFunctionrunWithEndpointContext
( context: AuthEndpointContext, fn: () => T, )
packages/core/src/context/endpoint-context.ts:44
↓ 6 callersFunctionschemaToOAuth
(input: SchemaClient<Scope[]>)
packages/oauth-provider/src/register.ts:407
↓ 6 callersFunctionscimClient
()
packages/scim/src/client.ts:5
↓ 6 callersFunctionsearchParamsToQuery
( params: URLSearchParams, )
packages/oauth-provider/src/utils/index.ts:615
↓ 6 callersFunctionsetTokenUtil
( token: string | null | undefined, ctx: AuthContext, )
packages/better-auth/src/oauth2/utils.ts:26
↓ 6 callersFunctionsymmetricDecodeJWT
( token: string, secret: string | SecretConfig, salt: string, )
packages/better-auth/src/crypto/jwt.ts:118
↓ 6 callersFunctionuseAIChat
()
docs/components/ai-chat.tsx:38
↓ 6 callersFunctionuseSessionQuery
(initialData?: SessionData)
demo/nextjs/data/user/session-query.ts:15
↓ 5 callersFunction_getEnv
(useShim?: boolean)
packages/core/src/env/env-impl.ts:9
↓ 5 callersFunctionanonymous
(options?: AnonymousOptions | undefined)
packages/better-auth/src/plugins/anonymous/index.ts:59
↓ 5 callersMethodarrayBuffer
()
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:2094
↓ 5 callersFunctionatomicVerifyOTP
* Verifies a single-use OTP with race-condition protection. * * The atomic consume is the single gate: only the first concurrent caller * receives
packages/better-auth/src/plugins/email-otp/routes.ts:1296
↓ 5 callersMethodcancel
(reason?: any)
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:2279
↓ 5 callersFunctioncheckOrgApiKeyPermission
( ctx: GenericEndpointContext, userId: string, organizationId: string, requiredAction: ApiKeyPermissionAct
packages/api-key/src/org-authorization.ts:59
↓ 5 callersFunctioncheckProviderAccess
( ctx: { context: AuthContext & { session: { user: { id: string } }; }; }, providerId: string, )
packages/sso/src/routes/providers.ts:334
↓ 5 callersFunctionclassifyHost
(host: string)
packages/core/src/utils/host.ts:308
↓ 5 callersFunctionconfigIdMatches
( keyConfigId: string | null | undefined, expectedConfigId: string | null | undefined, )
packages/api-key/src/routes/index.ts:86
↓ 5 callersFunctionconvertSetCookieToCookie
(headers: Headers)
packages/better-auth/src/test-utils/headers.ts:7
↓ 5 callersFunctioncreateImport
({ name, alias, asType, }: { name: string; alias?: string; asType?: boolean; })
packages/cli/src/commands/init/utility/imports.ts:50
↓ 5 callersFunctioncreateLogger
(options?: Logger | undefined)
packages/core/src/env/logger.ts:95
↓ 5 callersFunctioncreatePrice
( overrides: Partial<Stripe.Price> = {}, )
packages/stripe/test/_factories.ts:18
↓ 5 callersFunctioncreateSubscriptionItem
( overrides: Partial<Stripe.SubscriptionItem> = {}, )
packages/stripe/test/_factories.ts:51
↓ 5 callersFunctiondispatch
(action: Action)
demo/nextjs/hooks/use-toast.ts:133
↓ 5 callersFunctionensureAsyncStorage
()
packages/core/src/context/transaction.ts:15
↓ 5 callersFunctionfilterOutputFields
( data: T, additionalFields: Record<string, DBFieldAttribute> | undefined, )
packages/core/src/utils/db.ts:7
↓ 5 callersFunctionfindSAMLProvider
( providerId: string, options: SSOOptions | undefined, adapter: DBAdapter, )
packages/sso/src/routes/helpers.ts:7
↓ 5 callersFunctiongenerateState
( c: GenericEndpointContext, link: | { email: string; userId: string; } | undefined, additi
packages/better-auth/src/oauth2/state.ts:9
↓ 5 callersFunctiongetDefaultFieldName
({ field, model: unsafeModel, }: { model: string; field: string; })
packages/core/src/db/adapter/get-default-field-name.ts:27
↓ 5 callersFunctiongetEndpoints
( ctx: Awaitable<AuthContext>, options: Option, )
packages/better-auth/src/api/index.ts:173
↓ 5 callersFunctiongetFieldAttributes
({ model, field, }: { model: string; field: string; })
packages/core/src/db/adapter/get-field-attributes.ts:39
↓ 5 callersFunctiongetPackageInfo
(cwd?: string)
packages/cli/src/utils/get-package-info.ts:6
↓ 5 callersFunctiongetSourceFor
(versionSlug: string | null)
docs/lib/source.ts:18
↓ 5 callersFunctiongetStorageInstance
* Get the storage instance to use (custom methods take precedence)
packages/api-key/src/adapter.ts:184
↓ 5 callersFunctiongetStoredToken
( storageMethod: OAuthOptions<Scope[]>["storeTokens"] = "hashed", token: string, type: StoreTokenType, )
packages/oauth-provider/src/utils/index.ts:367
↓ 5 callersFunctiongetVersionFromPathname
(pathname: string)
docs/lib/docs-versions.ts:67
↓ 5 callersFunctionhandleRedirect
(ctx: GenericEndpointContext, uri: string)
packages/oauth-provider/src/authorize.ts:61
↓ 5 callersFunctioninit
(options: BetterAuthOptions)
packages/better-auth/src/context/init.ts:8
↓ 5 callersFunctioninitGetModelName
({ usePlural, schema, }: { usePlural: boolean | undefined; schema: BetterAuthDBSchema; })
packages/core/src/db/adapter/get-model-name.ts:4
↓ 5 callersFunctionisJsonEqual
(a: unknown, b: unknown)
packages/better-auth/src/client/equality.ts:17
↓ 5 callersFunctionisTrustedOrigin
()
packages/sso/src/oidc/discovery.test.ts:1171
↓ 5 callersFunctionlastLoginMethod
( userConfig?: O | undefined, )
packages/better-auth/src/plugins/last-login-method/index.ts:72
↓ 5 callersFunctionmiddlewareResponse
({ message, status, code }: Params)
packages/better-auth/src/utils/middleware-response.ts:7
↓ 5 callersFunctionmultiSession
(options?: MultiSessionConfig | undefined)
packages/better-auth/src/plugins/multi-session/index.ts:52
↓ 5 callersFunctionmultiSessionClient
()
packages/better-auth/src/plugins/multi-session/client.ts:8
↓ 5 callersFunctionnormalizeTimestampValue
(value: unknown)
packages/oauth-provider/src/utils/index.ts:77
↓ 5 callersFunctionoAuthProxy
(opts?: O)
packages/better-auth/src/plugins/oauth-proxy/index.ts:142
↓ 5 callersFunctionoptions
()
packages/better-auth/src/plugins/oidc-provider/index.ts:1871
↓ 5 callersFunctionparseClientMetadata
( metadata: string | object | undefined, )
packages/oauth-provider/src/utils/index.ts:534
↓ 5 callersFunctionparseInputData
( data: T, schema: { fields: Record<string, DBFieldAttribute>; action?: ("create" | "update") | undefine
packages/better-auth/src/db/schema.ts:143
↓ 5 callersFunctionparseState
(c: GenericEndpointContext)
packages/better-auth/src/oauth2/state.ts:50
↓ 5 callersFunctionprefixKey
(key: string)
packages/redis-storage/src/redis-storage.ts:57
↓ 5 callersFunctionredirectOnError
( ctx: GenericEndpointContext, errorURL: string, error: string, description?: string, )
packages/better-auth/src/oauth2/errors.ts:15
↓ 5 callersFunctionreferenceMiddleware
( options: StripeOptions, action: AuthorizeReferenceAction, )
packages/stripe/src/middleware.ts:25
↓ 5 callersMethodremove
()
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:1567
↓ 5 callersFunctionremovePromptFromQuery
(query: URLSearchParams, prompt: Prompt)
packages/oauth-provider/src/utils/index.ts:626
↓ 5 callersFunctionrewrite
(source: StringLiteralNode | null | undefined)
packages/cli/src/utils/get-config.ts:207
↓ 5 callersMethodsend
(message: Body, options?: QueueSendOptions)
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:1964
↓ 5 callersFunctionshouldPublishLog
( currentLogLevel: LogLevel, logLevel: LogLevel, )
packages/core/src/env/logger.ts:38
↓ 5 callersFunctionsplitAtLastColon
(input: string)
packages/better-auth/src/plugins/email-otp/utils.ts:21
↓ 5 callersFunctionssoClient
( options?: CO | undefined, )
packages/sso/src/client.ts:13
↓ 5 callersFunctiontoNode
(value: unknown)
packages/sso/src/saml/response-binding.ts:16
↓ 5 callersMethodupdateSession
( sessionToken: string, session: Partial<Session> & Record<string, any>, )
packages/core/src/types/context.ts:145
↓ 5 callersFunctionvalidateClientCredentials
( ctx: GenericEndpointContext, options: OAuthOptions<Scope[]>, clientId: string, clientSecret?: string, //
packages/oauth-provider/src/utils/index.ts:450
↓ 5 callersMethodwaitUntil
(promise: Promise<any>)
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:403
↓ 5 callersFunctionwrapperAdapter
( resolvedOptions?: BetterAuthOptions | undefined, )
packages/test-utils/src/adapter/create-test-suite.ts:257
↓ 4 callersFunction__getBetterAuthGlobal
()
packages/core/src/context/global.ts:37
↓ 4 callersFunctionadapter
(args_0)
e2e/adapter/test/adapter-factory/adapter-factory.test.ts:180
↓ 4 callersFunctionapiKey
( _configurations?: | (ApiKeyConfigurationOptions & ApiKeyOptions) | ApiKeyConfigurationOptions[] | und
packages/api-key/src/index.ts:41
↓ 4 callersFunctionapplySetCookies
( target: Headers, setCookieValues: Iterable<string>, )
packages/better-auth/src/cookies/cookie-utils.ts:282
↓ 4 callersFunctionapplyUpdateUserInfoOnLink
( c: GenericEndpointContext, userId: string, userInfo: LinkedProviderProfile, )
packages/better-auth/src/oauth2/link-account.ts:337
↓ 4 callersFunctionapplyWhere
(query: any)
packages/kysely-adapter/src/kysely-adapter.ts:806
↓ 4 callersFunctionauthenticate
({ $fetch, options, token, getWindow, fetchOptions, }: ElectronAuthenticateOptions & { $fetch: BetterFet
packages/electron/src/authenticate.ts:102
↓ 4 callersFunctionauthorize
( request: RoleAuthorizeRequest<TAuthorizeStatements>, connector: "OR" | "AND" = "AND", )
packages/better-auth/src/plugins/access/access.ts:113
↓ 4 callersFunctioncalculateTTL
* Calculate TTL in seconds for an API key
packages/api-key/src/adapter.ts:197
↓ 4 callersFunctioncanonicalizeOAuthQueryParams
(params: URLSearchParams)
packages/oauth-provider/src/signed-query.ts:5
↓ 4 callersFunctionclean
()
packages/better-auth/src/cookies/session-store.ts:179
↓ 4 callersMethodclone
()
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:1714
↓ 4 callersFunctioncreateMcpAuthClient
( options: McpAuthClientOptions, )
packages/better-auth/src/plugins/mcp/client/index.ts:195
↓ 4 callersFunctioncreateRefreshAccessTokenRequest
({ refreshToken, options, authentication, extraParams, resource, }: { refreshToken: string; options: Pr
packages/core/src/oauth2/refresh-access-token.ts:32
↓ 4 callersFunctioncreateSubscriptionEvent
( type: Extract<Stripe.Event.Type, `customer.subscription.${string}`>, subscriptionOverrides: Partial<Stripe
packages/stripe/test/_factories.ts:131
↓ 4 callersFunctioncreateUserResource
( baseURL: string, user: User, account?: Account | null, )
packages/scim/src/scim-resources.ts:5
↓ 4 callersFunctioncustomSession
( fn: ( session: { user: User<O["user"], O["plugins"]>; session: Session<O["session"], O["plugins"]>;
packages/better-auth/src/plugins/custom-session/index.ts:36
↓ 4 callersFunctiondeepmerge
(target: T, source: Partial<T>)
packages/core/src/db/adapter/utils.ts:36
↓ 4 callersFunctiondefaultHasher
(value: string)
packages/oauth-provider/src/utils/index.ts:198
↓ 4 callersFunctiondefineRequestState
( initFn: () => any | Promise<any>, )
packages/core/src/context/request-state.ts:88
↓ 4 callersMethoddeleteAccount
* Delete an account by its primary key. * * @param id - The account row's primary key (the `id` column, not the `accountId` column).
packages/core/src/types/context.ts:159
↓ 4 callersFunctiondeprecate
( fn: T, message: string, logger?: InternalLogger, )
packages/core/src/utils/deprecate.ts:6
↓ 4 callersFunctiondomainMatches
(searchDomain: string, domainList: string)
packages/sso/src/utils.ts:43
↓ 4 callersFunctionemailOTPClient
()
packages/better-auth/src/plugins/email-otp/client.ts:8
↓ 4 callersFunctionensureAsyncStorage
()
packages/core/src/context/request-state.ts:12
↓ 4 callersFunctionfetchSession
( queryParams?: { query?: SessionQueryParams } | undefined, )
packages/better-auth/src/client/session-atom.ts:106
↓ 4 callersFunctionfilterForeignKeys
({ fields }: { fields: DBFieldAttribute[] })
docs/lib/copy-schema/utils.ts:41
↓ 4 callersFunctionfindOrganizationMember
( ctx: GenericEndpointContext, userId: string, organizationId: string, )
packages/scim/src/routes.ts:144
↓ 4 callersFunctionfindUserById
( adapter: DBAdapter, { userId, providerId, organizationId, }: { userId: string; providerId: string;
packages/scim/src/routes.ts:1649
↓ 4 callersFunctionfirstNode
(value: unknown)
packages/sso/src/saml/response-binding.ts:31
↓ 4 callersFunctionformatErrorURL
( url: string, error: string, description: string, state?: string, iss?: string, )
packages/oauth-provider/src/authorize.ts:45
↓ 4 callersFunctiongenerateId
(size: number)
packages/telemetry/src/utils/id.ts:3
← previousnext →201–300 of 3,880, ranked by callers