MCPcopy Create free account

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

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

↓ 2 callersFunctiontoBase64Url
(value: string)
packages/oauth-provider/src/signed-query.ts:11
↓ 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:120
↓ 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 callersFunctiontransientInvalidClient
(description: string)
packages/cimd/src/client-store.ts:64
↓ 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
↓ 2 callersFunctionvalidateConfigAlgorithms
( config: { signatureAlgorithm?: string | undefined; digestAlgorithm?: string | undefined; }, options:
packages/sso/src/saml/algorithms.ts:274
↓ 2 callersFunctionvalidateDiscoveryDocument
( doc: OIDCDiscoveryDocument, configuredIssuer: string, )
packages/sso/src/oidc/discovery.ts:563
↓ 2 callersFunctionvalidateDiscoveryUrl
( url: string, isTrustedOrigin: DiscoverOIDCConfigParams["isTrustedOrigin"], )
packages/sso/src/oidc/discovery.ts:136
↓ 2 callersFunctionvalidateEmployeeIdentity
( database: Pick<DBAdapter, "findOne">, record: SCIMDemoEmployeeVerificationRecord, )
demo/nextjs/lib/scim-demo-employee.ts:351
↓ 2 callersFunctionvalidateGenerated
( request: { schema: FlexibleSchema<T> }, value: unknown, )
packages/release-tooling/test/release-rewrite.test.ts:34
↓ 2 callersFunctionvalidateGeneratedCode
(code: unknown, label: "device" | "user")
packages/better-auth/src/plugins/device-authorization/routes.ts:61
↓ 2 callersFunctionvalidateOAuthProviderExtensions
( extensions: OAuthProviderExtension[] | undefined, )
packages/oauth-provider/src/extensions.ts:154
↓ 2 callersFunctionvalidateOIDCEndpointUrl
* Validate that a user-supplied OIDC endpoint URL is safe to fetch. * * Layered checks (in order): * 1. URL parsing + http(s) scheme →
packages/sso/src/oidc/discovery.ts:175
↓ 2 callersFunctionvalidateOIDCEndpointUrls
( config: { authorizationEndpoint?: string | null; tokenEndpoint?: string | null; userInfoEndpoint?: st
packages/sso/src/oidc/discovery.ts:200
↓ 2 callersFunctionvalidateOIDCIdToken
( token: string, jwksEndpoint: string, options: { audience: string; issuer: string; }, isTrustedOrigi
packages/sso/src/oidc/discovery.ts:425
↓ 2 callersFunctionvalidateOrigin
* Validates origin header against trusted origins. * @param ctx - The endpoint context * @param forceValidate - If true, always validate origin rega
packages/better-auth/src/api/middlewares/origin-check.ts:221
↓ 2 callersFunctionvalidatePassword
( ctx: GenericEndpointContext, data: { password: string; userId: string; }, )
packages/better-auth/src/utils/password.ts:66
↓ 2 callersFunctionvalidateReleaseIdentity
(version: string, head: string)
packages/release-tooling/src/release-notes/comment.ts:27
↓ 2 callersFunctionvalidateReleaseNotes
(notes: string)
packages/release-tooling/src/release-notes/comment.ts:49
↓ 2 callersFunctionvalidateRequiredScopes
(opts: VerifyAccessTokenOptions)
packages/core/src/oauth2/verify.ts:701
↓ 2 callersFunctionvalidateSAMLResponseBinding
( samlContent: string, options: SAMLResponseBindingValidationOptions, )
packages/sso/src/saml/response-binding.ts:361
↓ 2 callersFunctionvalidateSAMLTimestamp
( conditions: SAMLConditions | undefined, options: TimestampValidationOptions = {}, )
packages/sso/src/saml/timestamp.ts:23
↓ 2 callersFunctionvalidateScopeTokens
(scopes: readonly string[], label: string)
packages/core/src/oauth2/verify.ts:693
↓ 2 callersFunctionvalidateSecretsArray
( secrets: Array<{ version: number; value: string }>, logger: ReturnType<typeof createLogger>, )
packages/better-auth/src/context/secret-utils.ts:45
↓ 2 callersFunctionvalidateSingleAssertion
(samlResponse: string)
packages/sso/src/saml/assertions.ts:40
↓ 2 callersFunctionvalidateURL
( url: unknown, label: | "origin" | "callbackURL" | "redirectURL" | "errorCallbackURL" | "n
packages/better-auth/src/api/middlewares/origin-check.ts:89
↓ 2 callersFunctionvalidateUsernameValue
(username: string)
packages/better-auth/src/plugins/username/index.ts:174
↓ 2 callersFunctionverify
(keyId: string, key: CryptoKey)
packages/oauth-provider/src/private-key-jwt.test.ts:427
↓ 2 callersFunctionverifyAccessTokenPayload
( token: string, opts: VerifyAccessTokenOptions, )
packages/core/src/oauth2/verify.ts:551
↓ 2 callersFunctionverifyAndConsumePhoneNumberOTP
( ctx: GenericEndpointContext, opts: RequiredPhoneNumberOptions, body: { phoneNumber: string; code: str
packages/better-auth/src/plugins/phone-number/routes.ts:322
↓ 2 callersFunctionverifyGoogleIdToken
({ token, audience, nonce, }: VerifyGoogleIdTokenOptions)
packages/core/src/social-providers/google.ts:99
↓ 2 callersFunctionverifyIdToken
( token: string, config: Extract<OAuthIdTokenConfig, { jwks: unknown }>, nonce?: string, )
packages/core/src/oauth2/verify-id-token.ts:82
↓ 2 callersFunctionverifyJwsToken
( token: string, opts: JwksFetchOptions & { verifyOptions: JWTVerifyOptions; /** * Verify against an
packages/core/src/oauth2/verify.ts:369
↓ 2 callersFunctionverifyPhoneNumberOTP
* Atomically verifies a phone-number OTP against a stored verification value. * * Consuming the row is the race gate: the first concurrent caller wi
packages/better-auth/src/plugins/phone-number/routes.ts:913
↓ 2 callersFunctionverifySAMLAssertionSignature
( samlContent: string, verificationOptions: Parameters<typeof saml.SamlLib.verifySignature>[1], )
packages/sso/src/saml/assertions.ts:84
↓ 2 callersFunctionverifyWithCustomVerifier
Checks the code with `verifyOTP`, then drops the code stored under `identifier`.
packages/better-auth/src/plugins/phone-number/routes.ts:347
↓ 2 callersFunctionwaitForIndex
(collection: string, name: string)
e2e/adapter/test/mongo-adapter/adapter.mongo-db.test.ts:111
↓ 2 callersFunctionwechat
(options: WeChatOptions)
packages/core/src/social-providers/wechat.ts:60
↓ 2 callersFunctionwildcardHostCoversRpID
( options: PasskeyOptions, baseURL: BetterAuthOptions["baseURL"], )
packages/passkey/src/utils.ts:91
↓ 2 callersFunctionwithReturning
( values: Record<string, any>, builder: | InsertQueryBuilder<any, any, any> | UpdateQueryBui
packages/kysely-adapter/src/kysely-adapter.ts:164
↓ 2 callersFunctionwithReturning
( model: string, modelKey: string, builder: any, data: Record<string, any>, where?: Where[
packages/drizzle-adapter/src/drizzle-adapter.ts:230
↓ 2 callersFunctionwithReturning
( model: string, modelKey: string, builder: any, data: Record<string, any>, where?: Where[
packages/drizzle-adapter/src/relations-v2/index.ts:373
↓ 2 callersFunctionwithoutCreatorRoleInvitations
( invitations: T[], input: Pick<HasPermissionBaseInput, "role" | "options">, )
packages/better-auth/src/plugins/organization/has-permission.ts:144
↓ 2 callersFunctionwrapReleaseNotesComment
( version: string, head: string, body: string, options: ReleaseNotesCommentOptions = {}, )
packages/release-tooling/src/release-notes/comment.ts:78
↓ 2 callersFunctionwriteFixtureFile
( workspace: string, path: string, content: string, )
packages/release-tooling/test/release-collection.test.ts:149
↓ 2 callersFunctionwriteItemAsync
( key: string, value: string, currentBaseValue: string | null, )
packages/expo/src/client-storage.ts:433
↓ 1 callersFunctionIcon
({ className, ...rest }: any)
demo/nextjs/app/features.tsx:62
↓ 1 callersFunctionInferPlugin
()
packages/better-auth/src/client/index.ts:26
↓ 1 callersFunctionInferServerPlugin
()
packages/better-auth/src/client/plugins/infer-plugin.ts:7
↓ 1 callersFunctionLogFunc
( level: LogLevel, message: string, args: any[] = [], )
packages/core/src/env/logger.ts:106
↓ 1 callersFunctionabortRead
()
packages/cimd/src/client-store.ts:146
↓ 1 callersFunctionabortTransactionCommand
* Abort a transaction whose commit did not complete, as a command on its own * session. * * `session.abortTransaction()` is retried by the driver o
packages/mongo-adapter/src/mongodb-adapter.ts:64
↓ 1 callersFunctionacceptInvitation
(options: O)
packages/better-auth/src/plugins/organization/routes/crud-invites.ts:635
↓ 1 callersFunctionacquireBindingLock
()
packages/scim/src/scim-projection.test.ts:130
↓ 1 callersFunctionacquireDecommissionLease
( database: DBAdapter, connectionId: string, provisioningDomainId?: string, )
packages/scim/src/connection-decommission.ts:104
↓ 1 callersFunctionacquireEmployeeIdentity
( database: Pick<DBTransactionAdapter, "findOne" | "incrementOne">, input: | { organizationId: string; sci
demo/nextjs/lib/scim-demo-employee.ts:297
↓ 1 callersFunctionacquireMetadataFetchPermit
( clientId: string, nowMs: number, )
packages/cimd/src/resolver.ts:602
← previousnext →1,701–1,800 of 6,653, ranked by callers