MCPcopy Create free account

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

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

↓ 1 callersFunctiongetProvider
(providerId: string)
packages/sso/src/domain-verification-concurrency.test.ts:102
↓ 1 callersFunctiongetProviderAuthorizationOrigin
( ctx: GenericEndpointContext, provider: OAuthProvider, )
packages/expo/src/routes.ts:20
↓ 1 callersFunctiongetProvisioningCounts
( db: Awaited<ReturnType<typeof getHttpTestInstance>>["db"], )
packages/scim/src/scim-sso-registration.test.ts:23
↓ 1 callersFunctiongetRSS
()
docs/lib/rss.ts:5
↓ 1 callersFunctiongetRateLimitStorage
( ctx: AuthContext, rateLimitSettings: { window: number; }, )
packages/better-auth/src/api/rate-limiter/index.ts:271
↓ 1 callersFunctiongetRatelimit
()
docs/lib/ai-chat/rate-limit.ts:5
↓ 1 callersFunctiongetRatelimit
()
docs/app/api/enterprise/contact/route.ts:9
↓ 1 callersFunctiongetRawHttpHostname
(redirectUri: string)
packages/oauth-provider/src/register.ts:182
↓ 1 callersFunctiongetReferencePath
(field: DBFieldAttribute)
packages/better-auth/src/db/get-migration.ts:970
↓ 1 callersFunctiongetRefreshTokenRotationReplay
( ctx: GenericEndpointContext, refreshToken: OAuthRefreshToken<Scope[]>, request: RefreshTokenRotationRepla
packages/oauth-provider/src/token.ts:1159
↓ 1 callersFunctiongetReportedOrigin
(clientDataJSON: unknown)
packages/passkey/src/utils.ts:78
↓ 1 callersFunctiongetRequestBody
( options: EndpointOptions, )
packages/better-auth/src/plugins/open-api/generator.ts:438
↓ 1 callersFunctiongetRequestBodySchemaInfo
(zodType: z.ZodType<unknown>)
packages/better-auth/src/plugins/open-api/generator.ts:274
↓ 1 callersFunctiongetRequestProperties
(document: unknown)
packages/oauth-provider/src/device-code.test.ts:174
↓ 1 callersFunctiongetRequestScopedRolesCache
( ctx: GenericEndpointContext, options: HasPermissionBaseInput["options"], )
packages/better-auth/src/plugins/organization/has-permission.ts:24
↓ 1 callersFunctiongetRequiredSCIMScope
(path: string, method: string)
packages/scim/src/connection-authentication.ts:34
↓ 1 callersFunctiongetResolveContext
(ctx: GenericEndpointContext)
packages/better-auth/src/plugins/last-login-method/index.ts:98
↓ 1 callersFunctiongetResourceByIdentifierEndpoint
( ctx: GenericEndpointContext & { params: { identifier: string } }, opts: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/oauthResource/endpoints.ts:136
↓ 1 callersFunctiongetResourceCustomClaims
( ctx: GenericEndpointContext, opts: OAuthOptions<Scope[]>, resourceIdentifiers: string[], )
packages/oauth-provider/src/resources.ts:590
↓ 1 callersFunctiongetResponse
( responses?: Record<string, OpenAPIResponse> | undefined, )
packages/better-auth/src/plugins/open-api/generator.ts:733
↓ 1 callersFunctiongetResponseNode
(parsed: XmlNode)
packages/sso/src/saml/response-binding.ts:247
↓ 1 callersFunctiongetReturnedSSOProviderAdditionalFields
( provider: Record<string, unknown>, options?: SSOOptions, )
packages/sso/src/routes/providers.ts:387
↓ 1 callersFunctiongetSAMLResponseBindingContent
( sp: ReturnType<typeof createSP>, samlContent: string, )
packages/sso/src/routes/saml-pipeline.ts:221
↓ 1 callersFunctiongetSCIMCoreAttributePrefix
Return the case-insensitive prefix accepted on core attribute paths.
packages/scim/src/resource-schema-registry.ts:86
↓ 1 callersFunctiongetSCIMDemoBaseURL
()
demo/nextjs/lib/scim-demo-identity.ts:64
↓ 1 callersFunctiongetSCIMDemoIdentityKey
()
demo/nextjs/lib/scim-demo-identity.ts:54
↓ 1 callersFunctiongetSCIMDemoIdentitySecret
()
demo/nextjs/lib/scim-demo-identity.ts:44
↓ 1 callersFunctiongetSCIMDemoManagementError
(error: unknown)
demo/nextjs/lib/scim-demo-management.ts:81
↓ 1 callersFunctiongetSCIMDemoOIDCAuthorizationPageURL
( request: SCIMDemoOIDCAuthorizationRequest, )
demo/nextjs/lib/scim-demo-oidc.ts:289
↓ 1 callersFunctiongetSCIMDemoOIDCJWKS
()
demo/nextjs/lib/scim-demo-oidc.ts:479
↓ 1 callersFunctiongetSCIMDemoOIDCProvider
()
demo/nextjs/lib/scim-demo-oidc.ts:338
↓ 1 callersFunctiongetSCIMDemoV2SubjectMessage
( connectionId: string, userKey: SCIMDemoUserKey, )
demo/nextjs/lib/scim-demo-identity.ts:81
↓ 1 callersFunctiongetSCIMGroup
(authMiddleware: SCIMConnectionMiddleware)
packages/scim/src/group-provisioning.ts:1044
↓ 1 callersFunctiongetSCIMPatchContainer
( document: Record<string, unknown>, enterprise: boolean, create: boolean, )
packages/scim/src/user-patch.ts:580
↓ 1 callersFunctiongetSCIMUser
(authMiddleware: SCIMConnectionMiddleware)
packages/scim/src/user-provisioning.ts:811
↓ 1 callersFunctiongetSSOProvider
(options?: SSOOptions)
packages/sso/src/routes/providers.ts:678
↓ 1 callersFunctiongetSSOProviderBuiltInFieldName
( options: SSOOptions | undefined, key: SSOProviderBuiltInFieldKey, )
packages/sso/src/index.ts:204
↓ 1 callersFunctiongetSafeRedirectCandidate
( url: string | undefined, callbackPathname: string, appOrigin: string, isTrustedOrigin: IsTrustedOrigin,
packages/sso/src/routes/saml-pipeline.ts:91
↓ 1 callersFunctiongetSchema
( normalizer: { username: (username: string) => string; displayUsername: (displayUsername: string) => str
packages/better-auth/src/plugins/username/schema.ts:6
↓ 1 callersFunctiongetSchema
(config: BetterAuthOptions)
packages/better-auth/src/db/get-schema.ts:6
↓ 1 callersFunctiongetSchema
( options: O, )
packages/stripe/src/schema.ts:110
↓ 1 callersFunctiongetSchemaProperty
(schema: OpenAPISchema, propertyName: string)
packages/better-auth/src/plugins/open-api/open-api.test.ts:25
↓ 1 callersMethodgetSchemas
()
packages/kysely-adapter/src/d1-sqlite-dialect.ts:191
↓ 1 callersFunctiongetSearchIndex
()
docs/lib/ai-chat/route.ts:43
↓ 1 callersFunctiongetSectorIdentifier
* Extracts the sector identifier (hostname) from a client's first redirect URI. * * @see https://openid.net/specs/openid-connect-core-1_0.html#Pairw
packages/oauth-provider/src/utils/index.ts:1128
↓ 1 callersFunctiongetSeededOptions
(ctx: AuthContext)
packages/oauth-provider/src/resources.ts:854
↓ 1 callersFunctiongetServerContextSignedQueryIssuedAt
(value: unknown)
packages/oauth-provider/src/oauth.ts:122
↓ 1 callersFunctiongetServerOrigins
(ctx: GenericEndpointContext)
packages/passkey/src/utils.ts:67
↓ 1 callersFunctiongetSession
()
demo/nextjs/data/user/session-query.ts:7
↓ 1 callersFunctiongetSession
(headers: Headers)
e2e/adapter/test/kysely-adapter/session-revocation-cutoff.mysql.test.ts:120
↓ 1 callersFunctiongetSessionCookie
()
packages/electron/test/electron.test.ts:1009
↓ 1 callersFunctiongetSessionDefaultFields
(options: BetterAuthOptions)
packages/better-auth/src/db/schema.ts:266
↓ 1 callersFunctiongetSessionHeaders
()
packages/better-auth/src/api/routes/password.test.ts:673
↓ 1 callersFunctiongetSessionPayload
()
packages/better-auth/src/client/query.test.ts:442
↓ 1 callersFunctiongetSessionToken
(requestHeaders: Headers)
packages/oauth-provider/src/backchannel-logout.test.ts:392
↓ 1 callersFunctiongetSessionWithNextHeaders
( nextHeaders: HeadersInit | "unavailable", )
packages/better-auth/src/integrations/next-js.test.ts:11
↓ 1 callersFunctiongetSetCookie
(header: string, prevCookie?: string | undefined)
packages/electron/src/cookies.ts:8
↓ 1 callersFunctiongetSignedOAuthQueryParameterNames
(params: URLSearchParams)
packages/oauth-provider/src/signed-query.ts:33
↓ 1 callersFunctiongetSlotChunkCount
(marker: ChunkMarker | null, slot: ChunkSlot | null)
packages/expo/src/client-storage.ts:268
↓ 1 callersFunctiongetSocialProvidersCode
(providers?: string[])
packages/cli/src/commands/init/utility/auth-config.ts:53
↓ 1 callersFunctiongetSqlite
()
packages/better-auth/src/test-utils/test-instance.ts:119
↓ 1 callersFunctiongetStableIndexNameHash
(value: string)
packages/core/src/db/database-index.ts:27
↓ 1 callersFunctiongetStableIndexNameHash
(value: string)
docs/lib/copy-schema/utils.ts:21
↓ 1 callersFunctiongetStep
(job: WorkflowJob, name: string)
packages/release-tooling/test/release-workflows.test.ts:85
↓ 1 callersFunctiongetStorageIdentifier
* Generate a unique identifier for a configuration's storage backend. * Used to group configurations that share the same storage and avoid duplicate
packages/api-key/src/routes/list-api-keys.ts:21
↓ 1 callersFunctiongetStorageOption
( identifier: string, config: | StoreIdentifierOption | { default: StoreIdentifierOption; overri
packages/better-auth/src/db/verification-token-storage.ts:28
↓ 1 callersFunctiongetStoredPopupToken
()
packages/better-auth/src/plugins/oauth-popup/client.ts:64
↓ 1 callersFunctiongetStringClaim
( payload: JWTPayload, claim: string, )
packages/core/src/oauth2/dpop.ts:272
↓ 1 callersFunctiongetStringErrorField
(value: unknown, field: string)
packages/sso/src/routes/sso.ts:1262
↓ 1 callersFunctiongetStringParameter
(value: unknown)
packages/oauth-provider/src/authorize.ts:132
↓ 1 callersFunctiongetSubAttribute
(attribute: SchemaAttribute, name: string)
packages/scim/src/schema-conformance.test.ts:37
↓ 1 callersFunctiongetSystemInfo
()
packages/cli/src/commands/info.ts:40
↓ 1 callersFunctiongetTableIndexStringLength
(tableName: string, fieldName: string)
packages/better-auth/src/db/get-migration.ts:997
↓ 1 callersFunctiongetTables
( options: DatabaseMetadataOptions = { withInternalKyselyTables: false }, )
packages/kysely-adapter/src/sqlite-introspector.ts:126
↓ 1 callersFunctiongetTestKeys
()
packages/test-utils/src/adapter/suites/basic.ts:3561
↓ 1 callersFunctiongetTextContent
(node: ReactNode)
docs/components/api-method.tsx:186
↓ 1 callersFunctiongetTheSentOTP
()
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:1876
↓ 1 callersFunctiongetTokenEndpointAuth
( options: CloudflareOptions, )
packages/core/src/social-providers/cloudflare.ts:135
↓ 1 callersFunctiongetTokens
(scopes: string[], resource?: string)
packages/oauth-provider/src/token.test.ts:4275
↓ 1 callersFunctiongetTokens
( overrides?: Partial<Parameters<typeof createAuthUrl>[0]>, resource?: string, targetClient: OAuthClient
packages/oauth-provider/src/revoke.test.ts:122
↓ 1 callersFunctiongetTokens
( overrides?: Partial<Parameters<typeof createAuthUrl>[0]>, resource?: string, )
packages/oauth-provider/src/userinfo.test.ts:172
↓ 1 callersFunctiongetTokens
( overrides?: Partial<Parameters<typeof createAuthUrl>[0]>, authCodeOverrides?: Partial<Parameters<typeof
packages/oauth-provider/src/introspect.test.ts:130
↓ 1 callersFunctiongetTokensForClient
( oauthClient: OAuthClient, redirectUri: string, overrides?: { resource?: string; }, )
packages/oauth-provider/src/pairwise.test.ts:114
↓ 1 callersFunctiongetTrustedClientCache
( options: OAuthOptions<Scope[]>, )
packages/oauth-provider/src/utils/index.ts:317
↓ 1 callersFunctiongetType
( name: string, field: DBFieldAttribute, tableIndexStringLength?: number | undefined, )
packages/drizzle-adapter/src/relations-v2/generate-drizzle-schema.ts:144
↓ 1 callersFunctiongetType
( name: string, field: DBFieldAttribute, tableIndexStringLength?: number | undefined, )
packages/cli/src/generators/drizzle.ts:118
↓ 1 callersFunctiongetType
( field: DBFieldAttribute, fieldName: string, tableIndexStringLength?: number | undefined, )
packages/better-auth/src/db/get-migration.ts:837
↓ 1 callersFunctiongetTypesenseSyncSkipReason
(env: NodeJS.ProcessEnv)
docs/scripts/sync-typesense.ts:10
↓ 1 callersFunctiongetUnauthorizedResponse
(document: unknown)
packages/oauth-provider/src/device-code.test.ts:178
↓ 1 callersFunctiongetUnusedChunkRanges
( key: string, previousMarker: ChunkMarker | null, marker: ChunkMarker | null, )
packages/expo/src/client-storage.ts:275
↓ 1 callersFunctiongetUser
(opts: AdminOptions)
packages/better-auth/src/plugins/admin/routes.ts:187
↓ 1 callersFunctiongetUserDefinition
(userKey: string)
demo/nextjs/lib/scim-demo-identity.ts:25
↓ 1 callersFunctiongetUserInfoAccessToken
(ctx: GenericEndpointContext)
packages/oauth-provider/src/userinfo.ts:76
↓ 1 callersFunctiongetUserInitials
()
demo/oidc-client/src/pages/Dashboard.tsx:37
↓ 1 callersFunctiongetUserInputRequestBodyFields
* Collect client-writable user fields from `user.additionalFields` and plugin * schemas. Mirrors `getFields(..., "input")` used by `parseUserInput`.
packages/better-auth/src/plugins/open-api/generator.ts:500
↓ 1 callersFunctiongetUsernameToValidate
(username: string)
packages/better-auth/src/plugins/username/index.ts:169
↓ 1 callersFunctiongetUtf8ByteLength
(character: string)
packages/expo/src/client-storage.ts:36
↓ 1 callersFunctiongetValidAccessToken
* Fetches a currently-valid access token for a user's provider account, * refreshing and persisting it when it is within five seconds of expiry. * S
packages/better-auth/src/api/routes/account.ts:671
↓ 1 callersFunctiongetVendor
()
packages/telemetry/src/node.ts:119
↓ 1 callersFunctiongetVendor
()
packages/telemetry/src/detectors/detect-system-info.ts:3
← previousnext →2,901–3,000 of 6,486, ranked by callers