MCPcopy Create free account

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

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

↓ 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:614
↓ 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:606
↓ 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 callersFunctionvalidateToken
( token: string, jwksEndpoint: string, options?: { audience?: string | string[]; issuer?: string | stri
packages/core/src/oauth2/validate-authorization-code.ts:172
↓ 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
(nbf: number)
packages/oauth-provider/src/private-key-jwt.test.ts:958
↓ 2 callersFunctionverify
(token: string)
packages/core/src/oauth2/verify.test.ts:832
↓ 2 callersFunctionverifyAccessTokenPayload
( token: string, opts: VerifyAccessTokenOptions, )
packages/core/src/oauth2/verify.ts:464
↓ 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; }, )
packages/core/src/oauth2/verify.ts:360
↓ 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:78
↓ 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)
packages/cimd/src/resolver.ts:406
↓ 1 callersFunctionacquireSCIMGroupMutationLocks
( database: DBTransactionAdapter, connection: SCIMConnection, groupIds: readonly string[], )
packages/scim/src/group-state.ts:108
↓ 1 callersFunctionacquireUserLink
( auth: ReturnType<typeof createIdentityFixture>["auth"], reference: SCIMUserExternalIdReference, )
packages/scim/src/scim-identity-resolution.test.ts:130
↓ 1 callersFunctionacsEndpoint
(options?: SSOOptions)
packages/sso/src/routes/sso.ts:2035
↓ 1 callersFunctionactionReferences
(job: WorkflowJob)
packages/release-tooling/test/release-workflows.test.ts:91
↓ 1 callersFunctionactiveHandler
(_req, res)
packages/better-auth/src/test-utils/http-test-instance.ts:76
↓ 1 callersFunctionadapterFor
(client: object, options: BetterAuthOptions = {})
packages/prisma-adapter/src/schema-check.test.ts:161
↓ 1 callersFunctionadapterFor
(schema: Record<string, unknown>, options = {})
packages/drizzle-adapter/src/schema-check.test.ts:107
↓ 1 callersFunctionadd
(value: string, createdAgo: number, expiresIn: number)
packages/better-auth/src/db/internal-adapter.test.ts:431
↓ 1 callersFunctionaddCloudflareVirtualModules
(aliases: Record<string, string>)
packages/cli/src/utils/cloudflare-virtual-modules.ts:103
↓ 1 callersFunctionaddCredential
( instance: Awaited<ReturnType<typeof createDynamicInstance>>, input: { token: string; connectionId: str
packages/scim/src/scim-dynamic-authentication.test.ts:130
↓ 1 callersFunctionaddEmails
(state: SCIMUserPatchState, value: unknown)
packages/scim/src/user-patch.ts:275
↓ 1 callersFunctionaddMember
( userId: string, organizationId: string, role: "member" | "admin" | "owner", headers: Headers,
packages/sso/src/providers.test.ts:431
↓ 1 callersFunctionaddMember
()
packages/test-utils/src/scim-lifecycle.ts:347
↓ 1 callersFunctionaddMember
(option: O)
packages/better-auth/src/plugins/organization/routes/crud-members.ts:45
↓ 1 callersFunctionaddNullType
(schema: OpenAPISchema)
packages/better-auth/src/plugins/open-api/generator.ts:184
↓ 1 callersFunctionaddNullableTierColumn
(db: DatabaseSync)
packages/better-auth/src/db/get-migration.test.ts:510
↓ 1 callersFunctionaddReplacement
( replacements: Replacement[], content: string, start: number, end: number, href: string, scopedHref: st
docs/lib/markdown-links.ts:15
↓ 1 callersFunctionaddSvelteKitVirtualModules
(aliases: Record<string, string>)
packages/cli/src/utils/sveltekit-virtual-modules.ts:34
↓ 1 callersFunctionaddTeamMember
(options: O)
packages/better-auth/src/plugins/organization/routes/crud-team.ts:1127
↓ 1 callersFunctionaddToRemoveQueue
(toastId: string)
demo/nextjs/hooks/use-toast.ts:58
↓ 1 callersFunctionaddUser
(groupId: string)
packages/scim/src/scim-group-patch-delta.test.ts:381
↓ 1 callersFunctionadminGrantCount
()
packages/scim/src/scim-read-limits.test.ts:592
↓ 1 callersFunctionadminGrantCountOf
(scimUserId: string)
packages/scim/src/scim-read-limits.test.ts:279
↓ 1 callersFunctionadminUpdateUser
(opts: AdminOptions)
packages/better-auth/src/plugins/admin/routes.ts:511
↓ 1 callersFunctionafter
(session)
packages/sso/src/index.ts:393
↓ 1 callersFunctionafterUpdateStripeOrg
(data: { organization: (Organization & WithStripeCustomerId) | null; user: User; })
packages/stripe/src/index.ts:98
↓ 1 callersFunctionallowBreakAfterUnderscore
* Error codes like `account_already_linked_to_different_user` have no spaces, * so give them a break opportunity after each `_` instead of overflowin
docs/app/api/og/route.tsx:38
↓ 1 callersFunctionallowLanOrigin
(url: URL)
packages/oauth-provider/src/insecure-redirect-uri.test.ts:14
↓ 1 callersFunctionallowLocalhostSubdomain
( uri: string, registeredUris: readonly string[], defaultResult: boolean, )
packages/oauth-provider/src/authorize.test.ts:1591
↓ 1 callersFunctionanswer
(questions: any, cancelWhen: (q: any) => boolean)
packages/cli/test/init.test.ts:1534
↓ 1 callersFunctionanswer
()
e2e/smoke/test/fixtures/cloudflare/test/verification-lock.test.ts:11
↓ 1 callersFunctionanswer
()
e2e/smoke/test/fixtures/cloudflare/test/plugin-retry.test.ts:13
↓ 1 callersFunctionapiKeySchema
({ defaultRateLimitMax, defaultTimeWindow, }: { defaultTimeWindow: number; defaultRateLimitMax: number; })
packages/api-key/src/schema.ts:4
↓ 1 callersFunctionappTokenPermissions
(step: WorkflowStep)
packages/release-tooling/test/release-workflows.test.ts:95
↓ 1 callersFunctionappendProtectedResource
( resources: Array<string | OAuthResourceInput> | undefined, resource: string, )
packages/mcp/src/plugin.ts:62
↓ 1 callersFunctionappendResourceIdentifier
( resources: readonly string[] | undefined, resource: string, )
packages/mcp/src/plugin.ts:78
↓ 1 callersFunctionapplyAttribute
( op: "add" | "remove" | "replace", path: string, value: unknown, )
packages/scim/src/group-provisioning.ts:382
↓ 1 callersFunctionapplyAttribute
( op: "add" | "remove" | "replace", path: string, value: unknown, )
packages/scim/src/user-patch.ts:1103
↓ 1 callersFunctionapplyBackchannelLogoutPlan
* Apply a prepared logout plan after the session deletion succeeds. Core runs * `session.delete.after` after the row is consumed and, for transaction
packages/oauth-provider/src/logout.ts:222
↓ 1 callersFunctionapplyCookieResponse
( plugin: ReturnType<typeof expoClient>, setCookie: string, )
packages/expo/test/expo.test.ts:1053
↓ 1 callersFunctionapplyGenericSCIMUserAttributePatch
( document: Record<string, unknown>, op: "add" | "remove" | "replace", path: string, value: unknown, )
packages/scim/src/user-patch.ts:911
↓ 1 callersFunctionapplyGroupPatch
( group: SCIMGroup, currentMemberIds: string[], operations: z.infer<typeof patchSCIMGroupBodySchema>["Opera
packages/scim/src/group-provisioning.ts:369
↓ 1 callersFunctionapplyIncrementalGroupMembershipPatch
( adapter: GroupMembershipAdapter, input: { connectionId: string; groupId: string; patch: IncrementalM
packages/scim/src/group-provisioning.ts:548
↓ 1 callersFunctionapplyRateLimitToSnapshot
* Translate a rate-limit decision into a counter snapshot for the * secondary-storage merge write. Denials throw before any write.
packages/api-key/src/routes/verify-api-key.ts:456
↓ 1 callersFunctionapplyRefreshExtraParams
( body: URLSearchParams, extraParams: Record<string, string> | undefined, )
packages/core/src/oauth2/refresh-access-token.ts:86
↓ 1 callersFunctionapplyReleaseRewrites
( manifestPath: string, rewritesPath: string, outputPath: string, )
packages/release-tooling/src/release-notes/render.ts:317
← previousnext →1,701–1,800 of 6,486, ranked by callers