MCPcopy Create free account

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

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

↓ 3 callersFunctiongetGlobalFocusManager
()
packages/better-auth/src/client/focus-manager.ts:52
↓ 3 callersFunctiongetHostFromSource
( source: Request | Headers, trustedProxyHeaders?: boolean, )
packages/better-auth/src/utils/url.ts:273
↓ 3 callersFunctiongetImportString
(imports: ImportGroup[])
packages/cli/src/commands/init/utility/imports.ts:79
↓ 3 callersFunctiongetJoinKeyName
( baseModel: string, joinedModel: string, schema: any, )
packages/prisma-adapter/src/prisma-adapter.ts:137
↓ 3 callersFunctiongetJwks
(token: string, opts: JwksFetchOptions)
packages/core/src/oauth2/verify.ts:279
↓ 3 callersFunctiongetLogoutClient
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, clientId: string, )
packages/oauth-provider/src/logout.ts:620
↓ 3 callersMethodgetMetadata
( options?: DatabaseMetadataOptions, )
packages/kysely-adapter/src/d1-sqlite-dialect.ts:207
↓ 3 callersFunctiongetOAuthProviderApi
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, grantType?: GrantType, )
packages/oauth-provider/src/token.ts:143
↓ 3 callersFunctiongetOAuthState
()
packages/better-auth/src/api/state/oauth.ts:41
↓ 3 callersFunctiongetOpenTelemetryAPI
()
packages/core/src/instrumentation/api.ts:7
↓ 3 callersFunctiongetPrismaClient
(dialect: Dialect)
e2e/adapter/test/prisma-adapter/get-prisma-client.ts:33
↓ 3 callersFunctiongetPrismaVersion
(cwd?: string)
packages/cli/src/utils/get-package-info.ts:13
↓ 3 callersFunctiongetRegisteredLogoutRedirect
( client: SchemaClient<Scope[]>, requestedURI?: string, state?: string, )
packages/oauth-provider/src/logout.ts:731
↓ 3 callersFunctiongetRequestedUserInfoClaims
( value: unknown, supportedClaims?: Iterable<string>, )
packages/oauth-provider/src/claims-request.ts:62
↓ 3 callersFunctiongetSAMLPostAssertionConsumerServiceUrls
( metadata: string | undefined, )
packages/sso/src/saml/response-binding.ts:224
↓ 3 callersFunctiongetSCIMDemoOIDCError
(error: unknown)
demo/nextjs/lib/scim-demo-oidc.ts:137
↓ 3 callersFunctiongetSCIMDemoOIDCLoginHint
( searchParams: SCIMDemoOIDCSearchParams, )
demo/nextjs/lib/scim-demo-oidc.ts:164
↓ 3 callersFunctiongetSCIMDemoProvisioningDomainId
( organizationId: string, )
demo/nextjs/lib/scim-demo.ts:28
↓ 3 callersFunctiongetSession
()
packages/better-auth/src/api/routes/session.ts:28
↓ 3 callersFunctiongetStorageKeyByHashedKey
* Generate storage key for API key by hashed key
packages/api-key/src/adapter.ts:126
↓ 3 callersFunctiongetStorageKeyById
* Generate storage key for API key by ID
packages/api-key/src/adapter.ts:133
↓ 3 callersFunctiongetStorageKeyByReferenceId
* Generate storage key for reference's API key list (user or org)
packages/api-key/src/adapter.ts:140
↓ 3 callersFunctiongetSupportedGrantTypes
( opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/extensions.ts:245
↓ 3 callersFunctiongetTrustedProviders
( options: BetterAuthOptions, request?: Request, )
packages/better-auth/src/context/helpers.ts:292
↓ 3 callersFunctiongetType
({ isBigint, isOptional, type, }: { type: DBFieldType; isOptional: boolean; isBigin
packages/cli/src/generators/prisma.ts:255
↓ 3 callersFunctiongetVerificationIdentifier
( options: SSOOptions, providerId: string, )
packages/sso/src/routes/domain-verification.ts:51
↓ 3 callersFunctiongetZodDef
(zodType: z.ZodType<unknown>)
packages/better-auth/src/plugins/open-api/generator.ts:168
↓ 3 callersFunctionhandleDeprecatedAlgorithm
( message: string, behavior: DeprecatedAlgorithmBehavior, errorCode: string, )
packages/sso/src/saml/algorithms.ts:153
↓ 3 callersFunctionhandleSelect
(version: DocsVersion)
docs/components/version-switcher.tsx:39
↓ 3 callersFunctionhasOrgAdminRole
(member: Pick<Member, "role">)
packages/sso/src/routes/providers.ts:393
↓ 3 callersFunctionhashToken
(token: string)
packages/scim/src/scim-dynamic-authentication.test.ts:45
↓ 3 callersFunctionidField
({ customModelName, forceAllowId, }: { customModelName?: string; forceAllowId?: boolean; })
packages/core/src/db/adapter/get-id-field.ts:27
↓ 3 callersFunctionidentityValueChanged
(current: unknown, updated: unknown)
packages/sso/src/routes/providers.ts:108
↓ 3 callersFunctionincrementMigrationCount
()
e2e/adapter/test/prisma-adapter/get-prisma-client.ts:59
↓ 3 callersFunctioninferOrgAdditionalFields
( schema?: S | undefined, )
packages/better-auth/src/plugins/organization/client.ts:292
↓ 3 callersFunctioninitGetDefaultFieldName
({ schema, usePlural, }: { schema: BetterAuthDBSchema; usePlural: boolean | undefined; })
packages/core/src/db/adapter/get-default-field-name.ts:5
↓ 3 callersFunctioninitGetIdField
({ usePlural, schema, disableIdGeneration, options, customIdGenerator, supportsUUIDs, }: { usePlural?:
packages/core/src/db/adapter/get-id-field.ts:7
↓ 3 callersMethodinput
* Begin applying a series of transformations to an image * @param stream The image bytes * @returns A transform handle
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:7555
↓ 3 callersFunctioninstallDependencies
({ dependencies, packageManager, cwd, type = "prod", catalogName, }: { dependencies: string | string[];
packages/cli/src/utils/install-dependencies.ts:32
↓ 3 callersFunctioninvalidFilterSyntax
(detail: string)
packages/scim/src/collection-query.ts:238
↓ 3 callersFunctioninvalidStoredUserAttributes
()
packages/scim/src/user-attributes.ts:10
↓ 3 callersFunctionisAudienceClaimAllowed
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, audienceClaim: string | string[] | undefined,
packages/oauth-provider/src/resources.ts:283
↓ 3 callersFunctionisBrowserFetchRequest
(headers?: Headers | null)
packages/core/src/utils/fetch-metadata.ts:1
↓ 3 callersFunctionisCurrentSSOProviderReference
( provider: ReferencedProvider, reference: SSOProviderReference | null, )
packages/sso/src/provider-reference.ts:159
↓ 3 callersFunctionisGoogleHostedDomainAllowed
( configuredHostedDomain: string | undefined, tokenHostedDomain: unknown, )
packages/core/src/social-providers/google.ts:137
↓ 3 callersFunctionisInsufficientScopeError
(error: unknown)
packages/core/src/oauth2/verify.ts:554
↓ 3 callersFunctionisLoopbackIP
(host: string)
packages/core/src/utils/host.ts:370
↓ 3 callersFunctionisPendingCancel
(sub: Subscription)
packages/stripe/src/utils.ts:33
↓ 3 callersFunctionisPrivateHostname
(hostname: string)
packages/oauth-provider/src/utils/client-assertion.ts:81
↓ 3 callersFunctionisRecord
(value: unknown)
packages/scim/src/index.ts:60
↓ 3 callersFunctionisRecord
(value: unknown)
packages/scim/src/active-normalization.ts:3
↓ 3 callersFunctionisSCIMDemoOIDCConfigured
()
demo/nextjs/lib/scim-demo-identity.ts:166
↓ 3 callersFunctionisSessionFreshForSignedQuery
( sessionCreatedAt: Date | string | undefined, signedQueryIssuedAt: Date | undefined, )
packages/oauth-provider/src/utils/index.ts:1052
↓ 3 callersFunctionisValidIP
(ip: string)
packages/core/src/utils/ip.ts:29
↓ 3 callersFunctionisValidSCIMCredentialId
(value: unknown)
packages/scim/src/connection-authentication.ts:52
↓ 3 callersFunctionlockSSOProviderRow
( context: AuthContext, provider: Pick<SSOProviderRecord, "providerId"> & Partial<Pick<SSOProviderRecord,
packages/sso/src/routes/providers.ts:255
↓ 3 callersFunctionlogoutConfirmationCookieName
(ctx: GenericEndpointContext)
packages/oauth-provider/src/logout.ts:460
↓ 3 callersFunctionlogoutPage
(title: string, body: string, status = 200)
packages/oauth-provider/src/logout.ts:389
↓ 3 callersFunctionlogoutProtocolError
( ctx: GenericEndpointContext, status: "BAD_REQUEST" | "UNAUTHORIZED" | "INTERNAL_SERVER_ERROR", error: str
packages/oauth-provider/src/logout.ts:443
↓ 3 callersFunctionmapDiscoveryErrorToAPIError
(error: DiscoveryError)
packages/sso/src/oidc/errors.ts:30
↓ 3 callersFunctionmatches
(email: SCIMEmail)
packages/scim/src/user-patch.ts:309
↓ 3 callersFunctionmcp
(options: McpOptions)
packages/mcp/src/plugin.ts:170
↓ 3 callersFunctionmigrateDoubleStringifiedMetadata
( ctx: GenericEndpointContext, apiKey: ApiKey, opts: PredefinedApiKeyOptions, )
packages/api-key/src/adapter.ts:93
↓ 3 callersFunctionmissingEmailLogMessage
( providerId: string, options?: { source?: "id_token" | "generic" }, )
packages/better-auth/src/oauth2/errors.ts:55
↓ 3 callersFunctionmockJSONResponse
(body: unknown)
packages/core/src/oauth2/verify.test.ts:78
↓ 3 callersFunctionmodifyBetterAuthOptions
( opts: BetterAuthOptions, shouldRunMigrations: boolean, )
packages/test-utils/src/adapter/create-test-suite.ts:626
↓ 3 callersFunctionms
(value: TimeString)
packages/better-auth/src/utils/time.ts:119
↓ 3 callersFunctionnormalizeGroupMemberIds
( members: Array<{ value?: string; type?: string; }>, )
packages/scim/src/group-provisioning.ts:211
↓ 3 callersFunctionnormalizeSCIMStringBooleanValue
Normalize the exact string Boolean forms accepted from SCIM providers.
packages/scim/src/active-normalization.ts:8
↓ 3 callersFunctionnormalizeUserOutput
( user: U, options?: ElectronClientOptions | undefined, )
packages/electron/src/user.ts:125
↓ 3 callersFunctionoauthDeviceAuthorization
( options: OAuthDeviceAuthorizationOptions = {}, )
packages/oauth-provider/src/device-code.ts:379
↓ 3 callersFunctionoauthToSchema
( input: OAuthClientRegistrationMetadata, )
packages/oauth-provider/src/register.ts:1231
↓ 3 callersFunctiononFinish
(testName: string)
packages/test-utils/src/adapter/create-test-suite.ts:828
↓ 3 callersFunctiononeTap
(options?: OneTapOptions | undefined)
packages/better-auth/src/plugins/one-tap/index.ts:60
↓ 3 callersFunctiononeTapClient
(options: GoogleOneTapOptions)
packages/better-auth/src/plugins/one-tap/client.ts:197
↓ 3 callersFunctionparseAccessTokenAuthorization
( authorization: string | null | undefined, )
packages/core/src/oauth2/dpop.ts:154
↓ 3 callersFunctionparseCookieCachePayload
( value: unknown, )
packages/better-auth/src/cookies/cache.ts:19
↓ 3 callersFunctionparseDoubleStringifiedMetadata
( metadata: ApiKey["metadata"], )
packages/api-key/src/adapter.ts:16
↓ 3 callersFunctionparseGenericState
( c: GenericEndpointContext, state: string | undefined, settings?: { cookieName?: string; skipStateCookieCh
packages/better-auth/src/state.ts:164
↓ 3 callersFunctionparseProtocolScheme
( protocolOption: ElectronClientOptions["protocol"], )
packages/electron/src/utils.ts:7
↓ 3 callersFunctionparseProviderEmailVerified
(value: unknown)
packages/sso/src/utils.ts:63
↓ 3 callersFunctionparseRoles
(roles: string | string[])
packages/better-auth/src/plugins/organization/organization.ts:117
↓ 3 callersFunctionparseRoles
(roles: string | string[])
packages/better-auth/src/plugins/admin/routes.ts:49
↓ 3 callersFunctionparseScopeField
(scope: unknown)
packages/core/src/oauth2/utils.ts:13
↓ 3 callersFunctionpasskeyClient
()
packages/passkey/src/client.ts:323
↓ 3 callersFunctionpersistOAuthClientRegistration
* Creates and persists one canonical OAuth client registration. * * Authorization and ownership resolution belong to endpoint adapters. This * oper
packages/oauth-provider/src/register.ts:731
↓ 3 callersFunctionphoneNumber
(options?: PhoneNumberOptions | undefined)
packages/better-auth/src/plugins/phone-number/index.ts:29
↓ 3 callersFunctionpushPrismaSchema
(dialect: Dialect)
e2e/adapter/test/prisma-adapter/push-prisma-schema.ts:21
↓ 3 callersFunctionreadEmail
(value: unknown)
packages/scim/src/user-patch.ts:137
↓ 3 callersFunctionreadRecord
(value: unknown)
demo/nextjs/app/dashboard/scim/lifecycle-walkthrough.tsx:107
↓ 3 callersFunctionreadSCIMUserAttributes
( user: Pick< SCIMUser, | "serializedAttributes" | "formattedName" | "givenName" | "familyName" |
packages/scim/src/user-attributes.ts:61
↓ 3 callersFunctionredirectOnError
( ctx: GenericEndpointContext, errorURL: string, error: string, description?: string, )
packages/better-auth/src/oauth2/errors.ts:38
↓ 3 callersFunctionremoveMaxAgeFromQuery
(query: URLSearchParams)
packages/oauth-provider/src/utils/index.ts:1075
↓ 3 callersFunctionreplaceGroupMemberships
( adapter: GroupMembershipAdapter, input: { connectionId: string; groupId: string; scimUserIds: string
packages/scim/src/group-provisioning.ts:586
↓ 3 callersFunctionrequest
( path: string, options: { method?: "GET" | "POST"; body?: Record<string, unknown>; } = {}, )
packages/sso/src/domain-verification-concurrency.test.ts:43
↓ 3 callersFunctionrequest
()
packages/mcp/src/handler.test.ts:21
↓ 3 callersFunctionrequestSCIM
( path: string, input: { body?: unknown; method?: "GET" | "POST" | "PATCH" | "DELETE"; expectedSt
demo/nextjs/app/dashboard/scim/lifecycle-walkthrough.tsx:316
↓ 3 callersFunctionrequireGroupAttributeProjection
( input: SCIMCollectionQueryInput, )
packages/scim/src/group-provisioning.ts:51
↓ 3 callersFunctionrequireRecord
( value: unknown, subject: string, )
demo/nextjs/app/dashboard/scim/settings.tsx:372
↓ 3 callersFunctionrequireResource
( value: unknown, schema: typeof SCIM_USER_SCHEMA | typeof SCIM_GROUP_SCHEMA, subject: string, )
demo/nextjs/app/dashboard/scim/lifecycle-walkthrough.tsx:113
← previousnext →601–700 of 5,326, ranked by callers