MCPcopy Create free account

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

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

↓ 1 callersFunctionschemaAcceptsUndefined
(zodType: z.ZodType<unknown>)
packages/better-auth/src/plugins/open-api/generator.ts:281
↓ 1 callersFunctionschemaAllowsNull
(schema: OpenAPISchema)
packages/better-auth/src/plugins/open-api/generator.ts:357
↓ 1 callersFunctionschemaGrant
( deviceCodeSchemaFields: Record<string, DBFieldAttribute>, )
packages/better-auth/src/plugins/device-authorization/schema.test.ts:9
↓ 1 callersFunctionschemaSearchPath
( db: Kysely<unknown>, dbType: KyselyDatabaseType | undefined, )
packages/kysely-adapter/src/schema-check.ts:184
↓ 1 callersFunctionscimRequest
( request: APIRequestContext, baseURL: string, token: string, input: { method: "GET" | "POST" | "PATCH";
e2e/integration/nextjs-demo/e2e/scim-demo.spec.ts:271
↓ 1 callersFunctionscimSingleValueScalar
* Unwrap a single-element array before validation. Microsoft Entra sometimes * wraps a single-valued attribute's PATCH replace value in an array.
packages/scim/src/user-schemas.ts:29
↓ 1 callersFunctionscimUserPatchChangesState
( user: SCIMUser, state: SCIMUserPatchState, )
packages/scim/src/user-patch.ts:92
↓ 1 callersFunctionscope
(href: string | undefined)
docs/app/docs/[[...slug]]/page.tsx:64
↓ 1 callersFunctionscopeAttributes
(cookie: CookieAttributes | undefined)
packages/better-auth/src/plugins/last-login-method/custom-prefix.test.ts:34
↓ 1 callersFunctionsearchIndex
(entries: SearchEntry[], query: string)
docs/lib/ai-chat/route.ts:77
↓ 1 callersFunctionsecretsMatch
(left: string, right: string)
demo/nextjs/lib/scim-demo-oidc.ts:562
↓ 1 callersFunctionseed
(ids: string[])
e2e/adapter/test/drizzle-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:77
↓ 1 callersFunctionseed
(ids: string[])
e2e/adapter/test/drizzle-v2-relations-adapter/adapter.drizzle.pg.increment-one-contention.test.ts:78
↓ 1 callersFunctionseedAccountWrittenBy17
(database: DatabaseSync)
packages/better-auth/src/db/account-schema-compat.test.ts:33
↓ 1 callersFunctionseedAdminGroups
(scimUserId: string, count: number)
packages/scim/src/scim-read-limits.test.ts:189
↓ 1 callersFunctionseedAuthRows
(sqliteDb: InstanceType<typeof Database>, nowTs: number)
e2e/adapter/test/drizzle-adapter/adapter.drizzle.use-plural-joins-relationname.test.ts:190
↓ 1 callersFunctionseedClient
( ctx: Awaited<ReturnType<typeof bootProvider>>["ctx"], clientId: string, )
packages/oauth-provider/src/validation-flow.test.ts:531
↓ 1 callersFunctionseedClient
( instance: Awaited<ReturnType<typeof boot>>, clientId: string, )
packages/oauth-provider/src/oauthResource/endpoints.test.ts:268
↓ 1 callersFunctionseedClientLink
( ctx: Awaited<ReturnType<typeof bootProvider>>["ctx"], clientId: string, resourceId: string, )
packages/oauth-provider/src/validation-flow.test.ts:546
↓ 1 callersFunctionseedKeySet
()
packages/core/src/oauth2/verify.test.ts:1548
↓ 1 callersFunctionseedTeamMember
(teamId: string)
packages/better-auth/src/plugins/organization/team.test.ts:1884
↓ 1 callersFunctionseedWidget
( adapter: DBAdapter<BetterAuthOptions>, id: string, name: string, )
packages/memory-adapter/src/memory-adapter.test.ts:36
↓ 1 callersFunctionseg
(o: unknown)
packages/core/src/oauth2/verify-id-token.test.ts:89
↓ 1 callersFunctionselect
(options: { message: string; options: Array<{ value: string; label: string }>; initialValue?: string; })
packages/cli/src/commands/init/index.ts:69
↓ 1 callersFunctionselectContext
( context: ReleaseRewriteContext, ids: string[], )
packages/release-tooling/src/release-notes/rewrite.ts:100
↓ 1 callersFunctionselected
( ctx: GenericEndpointContext, authorize: AuthorizeEndpointCaller<Result>, )
packages/oauth-provider/src/continue.ts:36
↓ 1 callersFunctionsend
(init: { body?: unknown; headers?: Record<string, string>; })
packages/oauth-provider/src/client.test.ts:29
↓ 1 callersFunctionsend
()
packages/better-auth/src/oauth2/link-account.ts:745
↓ 1 callersFunctionsendPhoneNumberOTP
(opts: RequiredPhoneNumberOptions)
packages/better-auth/src/plugins/phone-number/routes.ts:238
↓ 1 callersFunctionsendVerificationEmail
()
packages/better-auth/src/api/routes/update-user.test.ts:1090
↓ 1 callersFunctionsendVerificationEmail
(data, request)
packages/better-auth/src/plugins/email-otp/index.ts:58
↓ 1 callersFunctionsendVerificationEmailFn
( ctx: GenericEndpointContext, user: User, )
packages/better-auth/src/api/routes/email-verification.ts:48
↓ 1 callersFunctionsendVerificationOTP
({ email, otp: _otp, type })
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:23
↓ 1 callersFunctionsendVerificationOTP
(opts: RequiredEmailOTPOptions)
packages/better-auth/src/plugins/email-otp/routes.ts:101
↓ 1 callersFunctionsendVerificationOtpFn
(data: SendVerificationOtpData)
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:1874
↓ 1 callersFunctionsentIdentifiers
* Compiles a select of `columns` from `table` and reads the identifiers back * out of the transformed query, including the schema a plugin such as *
packages/kysely-adapter/src/schema-check.ts:74
↓ 1 callersFunctionserializeApiKey
* Serialize API key for storage
packages/api-key/src/adapter.ts:147
↓ 1 callersFunctionserializeCanonical
(value: unknown)
packages/sso/src/provider-reference.ts:17
↓ 1 callersFunctionserializeChallengeScopes
(scopes: readonly string[] | undefined)
packages/oauth-provider/src/resource-challenge.ts:21
↓ 1 callersFunctionserializeChunkMarker
(marker: ChunkMarker)
packages/expo/src/client-storage.ts:131
↓ 1 callersFunctionserializeID
({ field, value, model, }: { field: string; value: any; model: string; })
packages/mongo-adapter/src/mongodb-adapter.ts:443
↓ 1 callersFunctionserializeSCIMDemoEmployeePortalCookie
(token: string)
demo/nextjs/lib/scim-demo-employee.ts:655
↓ 1 callersFunctionserveStaleKeys
(keys: JwksCacheEntry, reason: string)
packages/oauth-provider/src/utils/client-assertion.ts:631
↓ 1 callersFunctionserveStoredClient
( storedClient: SchemaClient<Scope[]>, reason: string, )
packages/cimd/src/resolver.ts:920
↓ 1 callersFunctionserverError
(code: number, errmsg = `server error ${code}`)
packages/mongo-adapter/src/mongodb-adapter.test.ts:859
↓ 1 callersFunctionsessionToken
(setCookie: string)
packages/better-auth/src/oauth2/link-account.test.ts:2546
↓ 1 callersFunctionset
(value)
packages/core/src/context/request-state.ts:88
↓ 1 callersFunctionsetActiveOrganization
( options: O, )
packages/better-auth/src/plugins/organization/routes/crud-org.ts:860
↓ 1 callersFunctionsetActiveTeam
(options: O)
packages/better-auth/src/plugins/organization/routes/crud-team.ts:713
↓ 1 callersFunctionsetAllowedScopes
(allowedScopes: string[] | null)
packages/oauth-provider/src/token.test.ts:2230
↓ 1 callersFunctionsetClientCredentialsScopes
(clientId: string)
packages/oauth-provider/src/oauthClient/endpoints-discovered-client.test.ts:75
↓ 1 callersFunctionsetClientSecretBasicAuth
({ headers, options, clientId, body, }: { headers: Record<string, string>; options: TokenEndpointClientO
packages/core/src/oauth2/token-endpoint-auth.ts:138
↓ 1 callersFunctionsetClientSecretPostAuth
({ body, options, clientId, requireClientSecret, }: { body: URLSearchParams; options: TokenEndpointClien
packages/core/src/oauth2/token-endpoint-auth.ts:117
↓ 1 callersFunctionsetEffectiveField
( field: ClientAuthenticationField, value: unknown, )
packages/oauth-provider/src/utils/index.ts:731
↓ 1 callersMethodsetFocused
(focused: boolean)
packages/expo/src/focus-manager.ts:18
↓ 1 callersMethodsetFocused
(focused: boolean)
packages/better-auth/src/client/focus-manager.ts:21
↓ 1 callersFunctionsetFormattedName
( state: SCIMUserPatchState, formattedName: string, )
packages/scim/src/user-patch.ts:222
↓ 1 callersFunctionsetJwksCache
( cache: JwksCache, cacheKey: string, jwks: JSONWebKeySet, fetchedAt: number, sequence: number, )
packages/oauth-provider/src/utils/client-assertion.ts:194
↓ 1 callersFunctionsetLogoutConfirmationState
( ctx: GenericEndpointContext, sessionId?: string, confirmation: LogoutConfirmationContext = {}, )
packages/oauth-provider/src/logout.ts:482
↓ 1 callersFunctionsetNamePart
( state: SCIMUserPatchState, attribute: | "familyName" | "givenName" | "honorificPrefix" | "honorifi
packages/scim/src/user-patch.ts:235
↓ 1 callersMethodsetOnline
(online: boolean)
packages/expo/src/online-manager.ts:16
↓ 1 callersFunctionsetRole
(opts: O)
packages/better-auth/src/plugins/admin/routes.ts:93
↓ 1 callersFunctionsetSCIMUserActive
( userId: string, active: boolean, )
packages/scim/src/scim-sso-http-e2e.test.ts:261
↓ 1 callersFunctionsetServerFields
( clientId: string, update: Partial<SchemaClient<Scope[]>>, )
packages/cimd/src/metadata-refresh.test.ts:87
↓ 1 callersFunctionsetTerminal
(streams: Streams)
packages/cli/test/interactive.test.ts:13
↓ 1 callersFunctionsetTime
(offsetMs: number)
packages/core/src/oauth2/dpop.test.ts:455
↓ 1 callersFunctionsetUpSource
()
packages/core/src/oauth2/verify.test.ts:821
↓ 1 callersFunctionsetUserPassword
(opts: AdminOptions)
packages/better-auth/src/plugins/admin/routes.ts:1707
↓ 1 callersFunctionsettle
* Finishes a request that waits on fetch timeouts. Fake time moves only while * a transport call is pending, so the request's own async work runs in
packages/cimd/src/stale-if-error.test.ts:160
↓ 1 callersFunctionsettle
( p: ReturnType<typeof raceAuth.api.verifyPasskeyRegistration>, )
packages/passkey/src/passkey.test.ts:1227
↓ 1 callersFunctionsettleFlight
(outcome: SessionFetchOutcome)
packages/better-auth/src/client/session-atom.ts:248
↓ 1 callersFunctionsetup
(name: string)
packages/oauth-provider/src/private-key-jwt.test.ts:392
↓ 1 callersFunctionsetup
* Starts an auth server with the oauth provider and registers one * confidential client on it.
packages/oauth-provider/src/jwt-verification-errors.test.ts:52
↓ 1 callersFunctionsetup
( testWith: "sqlite" | "postgres" = "sqlite", authBaseURL = baseURL, )
packages/oauth-provider/src/oauthClient/endpoints-rotate-keys.test.ts:45
↓ 1 callersFunctionsetup
()
packages/api-key/src/session-routes.test.ts:16
↓ 1 callersFunctionsetup
(ssoOptions?: Parameters<typeof sso>[0])
packages/sso/src/providers.test.ts:3995
↓ 1 callersFunctionsetup
(clockSkew?: number)
packages/sso/src/saml-clock-skew.test.ts:128
↓ 1 callersFunctionsetup
( onTestFinished: (fn: () => void) => void, disableTransformInput = false, )
packages/core/src/db/adapter/factory.test.ts:426
↓ 1 callersFunctionsetup
()
packages/memory-adapter/src/memory-adapter.test.ts:30
↓ 1 callersFunctionsetup
(config: { requireEmailVerification?: boolean | undefined; emailPasswordRequireEmailVerification?: boolean
packages/better-auth/src/oauth2/link-account.test.ts:2457
↓ 1 callersFunctionsetup
( onPasswordReset?: () => Promise<void>, options?: Pick<BetterAuthOptions, "secondaryStorage" | "session
packages/better-auth/src/api/routes/password.test.ts:496
↓ 1 callersFunctionsetup
(options?: Parameters<typeof getTestInstance>[0])
packages/better-auth/src/api/routes/update-user.test.ts:147
↓ 1 callersFunctionsetup
()
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:662
↓ 1 callersFunctionsetup
(allowedAttempts?: number)
packages/better-auth/src/plugins/magic-link/magic-link.test.ts:707
↓ 1 callersFunctionsetup
()
packages/better-auth/src/plugins/siwe/siwe.test.ts:1444
↓ 1 callersFunctionsetup
* Creates an instance with an email-verified owner and a helper that * signs in through the mock IdP.
packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts:6142
↓ 1 callersFunctionsetup
()
packages/better-auth/src/plugins/organization/has-permission.test.ts:42
↓ 1 callersFunctionsetup
()
packages/better-auth/src/plugins/organization/routes/crud-invites.test.ts:387
↓ 1 callersFunctionsetup
( accountLockout?: TwoFactorOptions["accountLockout"], database?: BetterAuthOptions["database"], )
packages/better-auth/src/plugins/two-factor/two-factor.account-lockout.test.ts:74
↓ 1 callersFunctionsetup
(mappedPhoneNumber = phoneNumberValue)
packages/better-auth/src/plugins/phone-number/phone-number.test.ts:1588
↓ 1 callersFunctionsetup
()
packages/stripe/test/customer-id-input.test.ts:26
↓ 1 callersFunctionsetup
(stripeOptions: StripeOptions)
packages/stripe/test/webhook.test.ts:504
↓ 1 callersFunctionsetup
( userVerification?: NonNullable< PasskeyOptions["authenticatorSelection"] >["userVerification"], )
packages/passkey/src/passkey-user-verification.test.ts:9
↓ 1 callersFunctionsetup
()
e2e/integration/solid-vinxi/e2e/utils.ts:15
↓ 1 callersFunctionsetup
(createdAtType: string)
e2e/adapter/test/kysely-adapter/session-revocation-cutoff.mysql.test.ts:71
↓ 1 callersFunctionsetup
()
e2e/adapter/test/adapter-factory/email-lookup-test-suite.ts:13
↓ 1 callersMethodsetup
()
packages/better-auth/src/client/focus-manager.ts:8
↓ 1 callersFunctionsetupAuth
(withAdmin = true, requireEmailVerification = false)
packages/cli/test/create-admin.test.ts:40
↓ 1 callersFunctionsetupAuthorizationFixture
()
packages/oauth-provider/src/authorize-loopback.test.ts:105
↓ 1 callersFunctionsetupBridges
* Sets up IPC bridges in the main process.
packages/electron/src/browser.ts:317
← previousnext →4,001–4,100 of 6,653, ranked by callers