MCPcopy Create free account

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

Functions5,532 in github.com/better-auth/better-auth

↓ 4 callersFunctionresolveOAuthAccountKey
( provider: OAuthProvider<Profile>, tokens: OAuth2Tokens, profile: Profile, )
packages/better-auth/src/oauth2/account-key.ts:22
↓ 4 callersFunctionresolveQuantity
( items: Stripe.SubscriptionItem[], planItem: Stripe.SubscriptionItem, seatPriceId?: string, )
packages/stripe/src/utils.ts:59
↓ 4 callersFunctionresolveSigningKey
( ctx: GenericEndpointContext, options?: JwtOptions, overrides?: SigningKeyOverrides, )
packages/better-auth/src/plugins/jwt/sign.ts:104
↓ 4 callersFunctionresolveSubjectIdentifier
( userId: string, client: SchemaClient<Scope[]>, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/utils/index.ts:1026
↓ 4 callersFunctionrunSCIMApplicationCallback
( callback: () => Result | Promise<Result>, detail: string, )
packages/scim/src/scim-error.ts:54
↓ 4 callersFunctionsafeCloneRequest
(request?: Request)
packages/better-auth/src/utils/request.ts:1
↓ 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 callersFunctionsignPrivateKeyJwtClientAssertion
({ clientId, tokenEndpoint, privateKeyJwk, privateKeyPem, kid, algorithm, expiresIn = 120, }: { client
packages/core/src/oauth2/client-assertion.ts:116
↓ 4 callersFunctionskip
(reason: string)
packages/release-tooling/src/changesets/recommend.ts:90
↓ 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:660
↓ 4 callersFunctionstoreOTP
( ctx: GenericEndpointContext, opts: EmailOTPOptions, otp: string, )
packages/better-auth/src/plugins/email-otp/otp-token.ts:11
↓ 4 callersFunctionsymmetricEncodeJWT
( payload: T, secret: string | SecretConfig, salt: string, expiresIn: number = 3600, )
packages/better-auth/src/crypto/jwt.ts:90
↓ 4 callersFunctiontoNode
(value: unknown)
packages/sso/src/saml/response-binding.ts:19
↓ 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:906
↓ 4 callersMethodupdatePassword
(userId: string, password: string)
packages/core/src/types/context.ts:238
↓ 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:33
↓ 4 callersFunctionuseChatContext
()
docs/components/ai-chat.tsx:45
↓ 4 callersFunctionuseFormField
()
docs/components/ui/form.tsx:42
↓ 4 callersFunctionuseFormField
()
demo/nextjs/components/ui/form.tsx:42
↓ 4 callersFunctionvalidate
(xml: string)
packages/sso/src/index.ts:117
↓ 4 callersFunctionvalidatePublicClientJwks
( input: unknown, )
packages/oauth-provider/src/client-jwks.ts:122
↓ 4 callersFunctionverifyAccessTokenRequest
( request: ResourceRequestInput, opts: VerifyAccessTokenRequestOptions, )
packages/core/src/oauth2/verify.ts:619
↓ 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
↓ 4 callersFunctionwildcardMatch
* Compiles one or more glob patterns into a RegExp and returns an isMatch function. * The isMatch function takes a sample string as its only argument
packages/better-auth/src/utils/wildcard.ts:200
↓ 3 callersFunctionapiKeyClient
()
packages/api-key/src/client.ts:8
↓ 3 callersFunctionapplyTokenEndpointAuth
({ body, headers, options, tokenEndpoint, grantType, tokenEndpointAuth, authentication, }: ApplyTokenEn
packages/core/src/oauth2/token-endpoint-auth.ts:149
↓ 3 callersFunctionapplyUpdateUserInfoOnLink
( c: GenericEndpointContext, userId: string, userInfo: LinkedProviderProfile, )
packages/better-auth/src/oauth2/link-account.ts:610
↓ 3 callersFunctionareValidSCIMScopes
( scopes: unknown, )
packages/scim/src/connection-authentication.ts:56
↓ 3 callersFunctionassertClientIdConfigured
( method: TokenEndpointAuthMethod, clientId: string | undefined, )
packages/core/src/oauth2/token-endpoint-auth.ts:85
↓ 3 callersFunctionassertDisplayNameAvailable
( adapter: Pick<DBAdapter, "findOne">, connectionId: string, displayNameKey: string, excludeGroupId?: stri
packages/scim/src/group-provisioning.ts:190
↓ 3 callersFunctionassertExternalIdAvailable
( adapter: Pick<DBAdapter, "findOne">, connectionId: string, externalIdKey?: string, excludeGroupId?: stri
packages/scim/src/group-provisioning.ts:168
↓ 3 callersFunctionassertNonEmptyExtensionValue
(name: string, value: string)
packages/oauth-provider/src/extensions.ts:46
↓ 3 callersFunctionassertOIDCEndpointAllowed
( name: OIDCEndpointName, endpoint: string, isTrustedOrigin: (url: string) => boolean, )
packages/sso/src/oidc/discovery.ts:291
↓ 3 callersFunctionassertSAMLServiceProviderMetadataPolicy
( config: SAMLConfig, )
packages/sso/src/routes/helpers.ts:130
↓ 3 callersFunctionassertSCIMUserKeysAvailable
( adapter: Pick<DBAdapter, "findOne">, input: { connectionId: string; userNameKey: string; externalIdK
packages/scim/src/user-provisioning.ts:272
↓ 3 callersFunctionassertSSOUserResolutionAsyncContextSupport
( getStorage: typeof getCurrentDBAdapterAsyncLocalStorage = getCurrentDBAdapterAsyncLocalStorage, )
packages/sso/src/user-resolution.ts:108
↓ 3 callersFunctionassertSSOUserResolutionSessionStorage
( options: GenericEndpointContext["context"]["options"], )
packages/sso/src/user-resolution.ts:135
↓ 3 callersFunctionassertTwoFactorNotLocked
( ctx: GenericEndpointContext, twoFactorTable: string, twoFactor: TwoFactorTable, )
packages/better-auth/src/plugins/two-factor/verify-two-factor.ts:236
↓ 3 callersFunctionassertValidUserInfo
( ctx: GenericEndpointContext, data: { user: Partial<User> & Record<string, unknown>; source: ValidateUs
packages/better-auth/src/utils/validate-user-info.ts:41
↓ 3 callersFunctionassignOrganizationFromProvider
( ctx: GenericEndpointContext, options: AssignOrganizationFromProviderOptions, )
packages/sso/src/linking/org-assignment.ts:230
↓ 3 callersFunctionbuildRelationKeysByModel
( relationRegistry: DrizzleRelationRegistry | undefined, )
packages/drizzle-adapter/src/join-relation-key.ts:20
↓ 3 callersFunctioncaptureJsonResponse
( path: string, init: Parameters<typeof client.$fetch>[1], )
packages/oauth-provider/src/oauth-endpoint.integration.test.ts:56
↓ 3 callersFunctionchangesetIdsFromPaths
(paths: string)
packages/release-tooling/src/release-notes/collect.ts:232
↓ 3 callersFunctioncheckOAuthClient
( client: OAuthClientRegistrationMetadata, opts: OAuthOptions<Scope[]>, settings?: { registrationSource?:
packages/oauth-provider/src/register.ts:336
↓ 3 callersFunctioncleanup
()
packages/test-utils/src/adapter/test-adapter.ts:136
↓ 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:650
↓ 3 callersFunctionclientCredentialsTokenRequest
({ options, scope, authentication, tokenEndpointAuth, tokenEndpoint, resource, }: ClientCredentialsToken
packages/core/src/oauth2/client-credentials-token.ts:32
↓ 3 callersFunctioncn
(...inputs: ClassValue[])
demo/oidc-client/src/lib/utils.ts:5
↓ 3 callersFunctioncollectClaims
( opts: OAuthOptions<Scope[]>, run: ( extension: OAuthProviderExtension, ) => Awaitable<Record<string, un
packages/oauth-provider/src/extensions.ts:351
↓ 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 callersFunctioncreateCanonicalSCIMUserProfile
( input: APIUser, )
packages/scim/src/user-profile.ts:55
↓ 3 callersFunctioncreateCimdClientDiscovery
( options: CimdOptions, )
packages/cimd/src/index.ts:26
↓ 3 callersFunctioncreateCookieGetter
(options: BetterAuthOptions)
packages/better-auth/src/cookies/index.ts:44
↓ 3 callersFunctioncreateDatabaseIndexKey
(tableName: string, indexName: string)
packages/better-auth/src/db/get-migration.ts:146
↓ 3 callersFunctioncreateFetch
()
packages/release-tooling/test/github.test.ts:16
↓ 3 callersFunctioncreateGitHubReader
(options: GitHubReaderOptions)
packages/release-tooling/src/github.ts:43
↓ 3 callersFunctioncreateInactiveSlotKey
(credentialId: string)
packages/scim/src/managed-connections.ts:238
↓ 3 callersFunctioncreateInvalidAccessTokenError
()
packages/oauth-provider/src/introspect.ts:514
↓ 3 callersFunctioncreateKyselyAdapter
(config: BetterAuthOptions)
packages/kysely-adapter/src/dialect.ts:58
↓ 3 callersFunctioncreateMetadataFetchUnavailableError
(description: string)
packages/cimd/src/resolver.ts:62
↓ 3 callersFunctioncreateRateLimitKey
(ip: string, path: string)
packages/core/src/utils/ip.ts:391
↓ 3 callersFunctioncreateSAMLPostForm
( action: string, samlParam: string, samlValue: string, relayState?: string, )
packages/sso/src/routes/helpers.ts:277
↓ 3 callersFunctioncreateSCIMDemoV2Subject
( connectionId: string, userKey: SCIMDemoUserKey, )
demo/nextjs/lib/scim-demo-identity.ts:99
↓ 3 callersFunctioncreateSCIMEmailValueIndex
( emails: readonly SCIMEmail[], type?: string, )
packages/scim/src/user-profile.ts:119
↓ 3 callersFunctioncreateSCIMHeaders
(token: string)
packages/scim/src/scim-sso-http-e2e.test.ts:62
↓ 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:306
↓ 3 callersMethodcreateUser
( user: Omit<User, "id" | "createdAt" | "updatedAt" | "emailVerified"> & Partial<User> & Record<string
packages/core/src/types/context.ts:120
↓ 3 callersFunctioncreateVerificationIdentifier
( audience: | typeof SCIM_DEMO_EMPLOYEE_ACCESS_AUDIENCE | typeof SCIM_DEMO_EMPLOYEE_PORTAL_AUDIENCE, tok
demo/nextjs/lib/scim-demo-employee.ts:133
↓ 3 callersFunctiondecodeRefreshToken
( opts: OAuthOptions<Scope[]>, token: string, )
packages/oauth-provider/src/token.ts:457
↓ 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:328
↓ 3 callersFunctiondeepEqual
* Deep equality comparison for BetterAuthOptions. * Handles nested objects, arrays, and primitive values.
packages/test-utils/src/adapter/create-test-suite.ts:47
↓ 3 callersFunctiondefaultOTPGenerator
(options: EmailOTPOptions)
packages/better-auth/src/plugins/email-otp/routes.ts:1290
↓ 3 callersFunctiondeprecate
( fn: T, message: string, logger?: InternalLogger, )
packages/core/src/utils/deprecate.ts:6
↓ 3 callersFunctionderiveSAMLServiceProviderPolicy
( config: Pick<SAMLConfig, "spMetadata" | "wantAssertionsSigned">, )
packages/sso/src/routes/helpers.ts:168
↓ 3 callersFunctiondestroyPrismaClient
({ migrationCount, dialect, }: { migrationCount: number; dialect: Dialect; })
e2e/adapter/test/prisma-adapter/get-prisma-client.ts:64
↓ 3 callersFunctiondetectPackageManager
( cwd: string, packageJson: PackageJson, )
packages/cli/src/utils/check-package-managers.ts:24
↓ 3 callersFunctiondiscoverOIDCConfig
( params: DiscoverOIDCConfigParams, )
packages/sso/src/oidc/discovery.ts:60
↓ 3 callersFunctiondisplayUsernameNormalizer
(displayUsername: string)
packages/better-auth/src/plugins/username/index.ts:155
↓ 3 callersFunctionelectron
(options?: ElectronOptions | undefined)
packages/electron/src/index.ts:31
↓ 3 callersFunctionencodeToURLParams
(obj: Record<string, any>)
packages/better-auth/src/plugins/captcha/utils.ts:1
↓ 3 callersFunctionenforceDpopBinding
({ payload, authorization, proofJwt, method, url, replayStore, proofMaxAgeSeconds, signingAlgorithms,
packages/core/src/oauth2/dpop.ts:515
↓ 3 callersFunctionescapeStripeSearchValue
(value: string)
packages/stripe/src/utils.ts:51
↓ 3 callersMethodexecuteQuery
(compiledQuery: CompiledQuery)
packages/kysely-adapter/src/bun-sqlite-dialect.ts:129
↓ 3 callersMethodexecuteQuery
(compiledQuery: CompiledQuery)
packages/kysely-adapter/src/d1-sqlite-dialect.ts:151
↓ 3 callersMethodexecuteQuery
(compiledQuery: CompiledQuery)
packages/kysely-adapter/src/node-sqlite-dialect.ts:129
↓ 3 callersFunctionexitWithError
(message: string)
packages/cli/src/commands/create-admin.ts:27
↓ 3 callersFunctionexpandIPv6
* Expands a compressed IPv6 address to full form * e.g., "2001:db8::1" -> ["2001", "0db8", "0000", "0000", "0000", "0000", "0000", "0001"]
packages/core/src/utils/ip.ts:96
↓ 3 callersFunctionexpectSCIMResponse
(response: Response, status: number)
packages/test-utils/src/scim-lifecycle.ts:116
← previousnext →501–600 of 5,532, ranked by callers