MCPcopy Create free account

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

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

↓ 2 callersFunctionsetClientId
(body: URLSearchParams, clientId: string | undefined)
packages/core/src/oauth2/token-endpoint-auth.ts:89
↓ 2 callersFunctionsetCookie
(name: string, value: string)
packages/better-auth/src/test-utils/test-instance.ts:362
↓ 2 callersFunctionsetEnterpriseSchemaDeclaration
( document: Record<string, unknown>, declared: boolean, )
packages/scim/src/user-patch.ts:594
↓ 2 callersMethodsetFocused
(focused: boolean)
packages/better-auth/src/client/focus-manager.ts:6
↓ 2 callersFunctionsetIdToken
(token?: string)
demo/oidc-client/src/lib/auth/AuthProvider.tsx:44
↓ 2 callersFunctionsetJwksCache
( jwksCache: JwksCache, cacheKey: string, jwks: JSONWebKeySet, fetchedAt: number, )
packages/oauth-provider/src/utils/client-assertion.ts:41
↓ 2 callersMethodsetOnline
(online: boolean)
packages/better-auth/src/client/online-manager.ts:6
↓ 2 callersMethodsetOnline
(online: boolean)
packages/better-auth/src/client/online-manager.ts:25
↓ 2 callersFunctionsetRequestCookie
( headers: Headers, name: string, value: string, )
packages/better-auth/src/cookies/cookie-utils.ts:257
↓ 2 callersFunctionsetStatus
(_status: unknown)
packages/core/src/instrumentation/noop.ts:12
↓ 2 callersFunctionsettle
()
packages/mongo-adapter/src/mongodb-adapter.test.ts:862
↓ 2 callersFunctionsettle
(outcome: PopupOutcome)
packages/better-auth/src/plugins/oauth-popup/client.ts:168
↓ 2 callersFunctionsetup
()
e2e/adapter/test/adapter-factory/email-lookup-test-suite.ts:13
↓ 2 callersFunctionsetupExpoFocusManager
()
packages/expo/src/focus-manager.ts:38
↓ 2 callersFunctionsetupExpoOnlineManager
()
packages/expo/src/online-manager.ts:41
↓ 2 callersFunctionshouldBindAccountCookieToSessionUser
( options: BetterAuthOptions, )
packages/better-auth/src/context/store-capabilities.ts:11
↓ 2 callersFunctionshouldSkipCSRFForBackwardCompat
* Checks if CSRF should be skipped for backward compatibility. * Previously, disableOriginCheck also disabled CSRF checks. * This maintains that beh
packages/better-auth/src/api/middlewares/origin-check.ts:15
↓ 2 callersFunctionshowJsonConfig
(entry: McpEntry)
packages/cli/src/commands/ai.ts:779
↓ 2 callersFunctionshowNextSteps
(lines: string[])
packages/cli/src/commands/ai.ts:801
↓ 2 callersFunctionsignAccessToken
(privateKey: CryptoKey, kid: string)
packages/oauth-provider/src/jwt-verification-errors.test.ts:27
↓ 2 callersFunctionsignCookieValue
* Signs a cookie value using HMAC-SHA256
packages/better-auth/src/plugins/test-utils/cookie-builder.ts:8
↓ 2 callersFunctionsignDiscoveredClientAssertion
(input: { audience: string; clientId: string; key: CryptoKey; keyId: string; nbf?: number; exp?: n
packages/oauth-provider/src/private-key-jwt.test.ts:292
↓ 2 callersFunctionsignInSocial
()
packages/better-auth/src/api/routes/sign-in.ts:198
↓ 2 callersFunctionsignInWithSSO
()
packages/scim/src/scim-sso-http-e2e.test.ts:327
↓ 2 callersFunctionsiweMessage
(opts?: { domain?: string; address?: string; chainId?: number; nonce?: string; expirationTime?: stri
packages/better-auth/src/plugins/siwe/siwe.test.ts:15
↓ 2 callersFunctionsnapshotGuard
( row: StoredRow, fields: readonly string[], request: FallbackRequest, action: "consumeOne" | "increme
packages/core/src/db/adapter/atomic-fallback.ts:116
↓ 2 callersFunctionsqliteGeneratedPrimaryKeyColumn
( db: Kysely<unknown>, name: string, columns: readonly PragmaTableInfo[], )
packages/kysely-adapter/src/sqlite-introspector.ts:54
↓ 2 callersFunctionsqliteIntegerPrimaryKeyColumn
( columns: readonly PragmaTableInfo[], )
packages/kysely-adapter/src/sqlite-introspector.ts:44
↓ 2 callersFunctionstartChallenge
()
packages/better-auth/src/plugins/two-factor/two-factor.account-lockout.test.ts:119
↓ 2 callersFunctionstartCli
(args: string[], cwd: string)
packages/cli/test/exit-codes.test.ts:34
↓ 2 callersFunctionstop
()
packages/sso/src/saml.test.ts:675
↓ 2 callersFunctionstopProcessTree
()
e2e/smoke/test/cloudflare.spec.ts:37
↓ 2 callersFunctionstoreConsent
( referenceId: string, scopes: string[], id?: string, )
packages/oauth-provider/src/post-login.test.ts:194
↓ 2 callersFunctionstoreResponseCookies
(response: Response, cookies: CookieJar)
packages/scim/src/scim-sso-http-e2e.test.ts:40
↓ 2 callersFunctionstoreResponseCookies
(response: Response, cookies: CookieJar)
packages/sso/src/oidc-user-resolution-http-e2e.test.ts:22
↓ 2 callersFunctionstoreToken
(ctx: GenericEndpointContext, token: string)
packages/better-auth/src/plugins/one-time-token/index.ts:83
↓ 2 callersFunctionstrictAssertionSigningConfiguration
(encrypted = false)
packages/sso/src/saml.test.ts:6934
↓ 2 callersFunctionstringAttribute
( name: string, description: string, options: { required?: boolean; mutability?: "readOnly" | "readWrit
packages/scim/src/user-schemas.ts:194
↓ 2 callersFunctionstripAccessTokenAuthorizationScheme
(token: string)
packages/core/src/oauth2/dpop.ts:222
↓ 2 callersFunctionstripReservedOAuthClientMetadataExtensions
( metadata: Record<string, unknown> | undefined, )
packages/oauth-provider/src/client-metadata.ts:143
↓ 2 callersFunctionstripSCIMResourceNullAttributes
(resource: unknown)
packages/scim/src/null-attributes.ts:63
↓ 2 callersFunctionstripSecureCookiePrefix
(cookieName: string)
packages/better-auth/src/cookies/cookie-utils.ts:40
↓ 2 callersFunctionstripVersionPrefix
( pathname: string, version: DocsVersion, )
docs/lib/docs-versions.ts:145
↓ 2 callersFunctionsubmitAction
(page: Page, button: string)
e2e/integration/waku/e2e/waku.spec.ts:18
↓ 2 callersFunctionsubmitSAMLResponse
( baseURL: string, signIn: Awaited<ReturnType<typeof initiateSAMLSignIn>>, options: { relayState?: st
packages/sso/src/saml.test.ts:6851
↓ 2 callersMethodtable
* The **`console.table()`** static method displays tabular data as a table. * * [MDN Reference](https://developer.mozilla.org/docs/Web/API/console
e2e/smoke/test/fixtures/cloudflare/worker-configuration.d.ts:181
↓ 2 callersFunctiontestUtils
(options: TestUtilsOptions = {})
packages/better-auth/src/plugins/test-utils/index.ts:74
↓ 2 callersFunctionthrowDpopUnauthorized
( message: string, error?: "invalid_dpop_proof" | "invalid_token", )
packages/core/src/oauth2/verify.ts:674
↓ 2 callersFunctionthrowInvalidAuthenticationRequest
(errorDescription: string)
packages/oauth-provider/src/utils/index.ts:645
↓ 2 callersFunctionthrowInvalidClient
( errorDescription: string, authentication?: { method?: TokenEndpointAuthMethod; scheme?: string; }, )
packages/oauth-provider/src/utils/index.ts:821
↓ 2 callersFunctionthrowInvalidDpopProof
(errorDescription: string)
packages/oauth-provider/src/token.ts:850
↓ 2 callersFunctionthrowRedirectError
* Convert an explicit HTTP redirect response into the OIDC configuration error * used by all server-side endpoint fetches.
packages/sso/src/oidc/discovery.ts:329
↓ 2 callersFunctiontiktok
(options: TiktokOptions)
packages/core/src/social-providers/tiktok.ts:138
↓ 2 callersFunctiontoAuthEndpoints
( endpoints: E, ctx: AuthContext | Promise<AuthContext>, )
packages/better-auth/src/api/to-auth-endpoints.ts:74
↓ 2 callersFunctiontoIntrospectedTables
( tables: readonly TableMetadata[], )
packages/kysely-adapter/src/schema-check.ts:23
↓ 2 callersFunctiontoManagedConnection
( connection: ManagedConnectionRow, )
packages/scim/src/managed-connections.ts:315
↓ 2 callersFunctiontoManagedCredential
( credential: ManagedCredentialRow, observedAt = new Date(), )
packages/scim/src/managed-connections.ts:332
↓ 2 callersFunctiontoNextJsHandler
( auth: | { handler: (request: Request) => Promise<Response>; } | ((request: Request) => Promise<
packages/better-auth/src/integrations/next-js.ts:8
↓ 2 callersFunctiontoOpenApiSchema
(zodType: z.ZodType<unknown>)
packages/better-auth/src/plugins/open-api/generator.ts:577
↓ 2 callersFunctiontoServerUrl
(url: string)
e2e/smoke/test/dpop-interop.spec.ts:89
↓ 2 callersFunctiontoSnakeCase
(input: string)
packages/core/src/utils/string.ts:13
↓ 2 callersFunctiontokenError
( status: "BAD_REQUEST" | "UNAUTHORIZED" | "INTERNAL_SERVER_ERROR", error: string, errorDescription: string
packages/oauth-provider/src/device-code.ts:83
↓ 2 callersFunctiontooLargeError
()
packages/cimd/src/client-store.ts:52
↓ 2 callersFunctiontransform
* Transforms one or more glob patterns into a RegExp pattern
packages/better-auth/src/utils/wildcard.ts:45
↓ 2 callersFunctiontransformWhereClause
({ model, where, action, }: { where: W; model: string; action: | "create" | "updat
packages/core/src/db/adapter/factory.ts:486
↓ 2 callersFunctiontryDecode
(str: string)
packages/better-auth/src/cookies/cookie-utils.ts:1
↓ 2 callersFunctiontryFenceActiveSCIMConnection
( database: Pick<DBTransactionAdapter, "incrementOne">, connectionId: string, )
packages/scim/src/connection-state.ts:115
↓ 2 callersFunctiontsxifyBackticks
(input: string)
docs/components/api-method.tsx:327
↓ 2 callersFunctionttlFor
(window: number)
packages/better-auth/src/api/rate-limiter/index.ts:282
↓ 2 callersFunctionunauthorized
* A 401 carrying `challenge`, which browsers hide from cross-origin clients * unless it is exposed.
packages/oauth-provider/src/userinfo.ts:131
↓ 2 callersFunctionunquoteCookieValue
* Strip surrounding double-quotes per RFC 6265 §4.1.1 quoted-string form. * * @see https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
packages/better-auth/src/cookies/cookie-utils.ts:196
↓ 2 callersFunctionunwrapSinglePatchValue
* Unwrap a PATCH operation value Microsoft Entra sent as a single-element * array for what is actually a single-valued attribute.
packages/scim/src/user-patch.ts:131
↓ 2 callersFunctionupdate
({ model, modelKey = model, where, update })
packages/prisma-adapter/src/prisma-adapter.ts:589
↓ 2 callersFunctionupdateClientEndpoint
( ctx: GenericEndpointContext & { body: { client_id: string; update: OAuthClientUpdate; }; }, opt
packages/oauth-provider/src/oauthClient/endpoints.ts:210
↓ 2 callersFunctionupdateEnvFiles
( envFiles: string[], envs: string[], )
packages/cli/src/commands/init/utility/env.ts:28
↓ 2 callersMethodupdatePassword
(userId: string, password: string)
packages/core/src/types/context.ts:249
↓ 2 callersFunctionuseApiMethodTabs
()
docs/components/api-method-tabs.tsx:33
↓ 2 callersFunctionuseAuth
()
demo/oidc-client/src/lib/auth/useAuth.ts:14
↓ 2 callersFunctionuseBelowFoldMedia
* Below-the-fold media (contributor avatars, the demo video) never competes * with the initial load. Once the page has loaded, a fast connection fetc
docs/components/landing/hero-readme.tsx:706
↓ 2 callersFunctionuseChart
()
demo/nextjs/components/ui/chart.tsx:27
↓ 2 callersFunctionuseCopyButton
( onCopy: () => void | Promise<void>, failureMessage: string, )
docs/app/docs/[[...slug]]/page.client.tsx:19
↓ 2 callersFunctionuseDocsVersions
()
docs/app/docs/provider.tsx:54
↓ 2 callersFunctionuseMobileNavigationView
()
docs/lib/mobile-navigation.ts:29
↓ 2 callersFunctionuseResolvedHex
(source: { cssVar?: string; className?: string })
docs/app/brand/brand-client.tsx:273
↓ 2 callersFunctionuseSession
(useFetch?: SessionFetch | undefined)
packages/better-auth/src/client/vue/index.ts:175
↓ 2 callersFunctionuseSignOutMutation
()
demo/nextjs/data/user/sign-out-mutation.ts:14
↓ 2 callersFunctionuseStore
(store: SomeStore)
packages/better-auth/src/client/vue/vue-store.ts:20
↓ 2 callersFunctionuseUser
()
demo/electron/src/renderer/src/components/user-provider.tsx:58
↓ 2 callersFunctionuseVersionAvailability
()
docs/app/docs/provider.tsx:50
↓ 2 callersFunctionuser
(email: string)
packages/mongo-adapter/src/mongodb-adapter.test.ts:852
↓ 2 callersFunctionuserData
(email: string, extra: Record<string, unknown> = {})
e2e/adapter/test/mongo-adapter/adapter.mongo-db.test.ts:102
↓ 2 callersFunctionusernameClient
( options?: O, )
packages/better-auth/src/plugins/username/client.ts:20
↓ 2 callersFunctionusesQuery
( method: ApiMethodHttpMethod, options: Pick< ApiMethodOptions, "forceAsBody" | "forceAsParam" | "forceA
docs/lib/api-method.ts:253
↓ 2 callersFunctionvalidateApiKey
({ key, ctx, lookupOpts, configurations, schema, permissions, expectedConfigId, runCustomValidator, }:
packages/api-key/src/routes/verify-api-key.ts:22
↓ 2 callersFunctionvalidateAuthCode
( overrides: MakeRequired< Partial<Parameters<typeof authorizationCodeRequest>[0]>, "code" >, )
packages/oauth-provider/src/token.test.ts:153
↓ 2 callersFunctionvalidateAuthCode
( overrides: MakeRequired< Partial<Parameters<typeof authorizationCodeRequest>[0]>, "code" >, )
packages/oauth-provider/src/logout.test.ts:238
↓ 2 callersFunctionvalidateCertSources
( config: Pick<SAMLConfig, "cert" | "idpMetadata">, )
packages/sso/src/saml/cert.ts:31
↓ 2 callersFunctionvalidateCimdMetadata
( clientIdUrl: string, raw: unknown, options: CimdMetadataValidationOptions = {}, )
packages/cimd/src/validate-metadata-document.ts:156
↓ 2 callersFunctionvalidateClientCredentialsScopes
( scopes: readonly Scope[], grantTypes: readonly GrantType[], tokenEndpointAuthMethod: TokenEndpointAuthMet
packages/oauth-provider/src/oauthClient/client-credentials.ts:22
↓ 2 callersFunctionvalidateClientIdUrl
(url: string)
packages/cimd/src/validate-metadata-document.ts:70
← previousnext →1,601–1,700 of 6,486, ranked by callers