MCPcopy Create free account

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

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

↓ 2 callersFunctioncreateSCIMEmailValueToken
(email: string)
packages/scim/src/user-profile.ts:138
↓ 2 callersFunctioncreateSCIMHeaders
()
packages/scim/src/scim-active-normalization.test.ts:526
↓ 2 callersFunctioncreateSCIMOrderKey
(createdAt: Date)
packages/scim/src/resource-key.ts:22
↓ 2 callersFunctioncreateSCIMRequest
( path: string, options: { method?: "GET" | "PATCH" | "POST"; body?: unknown; } = {}, )
packages/scim/src/scim-entra-conformance.test.ts:86
↓ 2 callersFunctioncreateSessionRefreshManager
(opts: SessionRefreshOptions)
packages/better-auth/src/client/session-refresh.ts:34
↓ 2 callersFunctioncreateSignInPopup
({ $fetch, options, notifySessionSignal, }: SignInPopupDeps)
packages/better-auth/src/plugins/oauth-popup/client.ts:221
↓ 2 callersFunctioncreateSignedGoogleToken
( payload: Record<string, unknown>, options: { kid?: string | null } = {}, )
packages/core/src/social-providers/google.test.ts:17
↓ 2 callersFunctioncreateSignedToken
( privateKey: CryptoKey, kid: string | undefined, payload: Record<string, unknown> = {}, expirationTim
packages/core/src/oauth2/verify.test.ts:61
↓ 2 callersFunctioncreateSigningKeys
(privateJWK: JWK_RSA_Private)
demo/nextjs/lib/scim-demo-oidc.ts:393
↓ 2 callersFunctioncreateSqliteIntrospector
( db: Kysely<unknown>, )
packages/kysely-adapter/src/sqlite-introspector.ts:117
↓ 2 callersFunctioncreateStringSecondaryStorage
( store: Map<string, string>, ttlStore?: Map<string, number>, )
packages/better-auth/src/db/internal-adapter.test.ts:33
↓ 2 callersFunctioncreateSubscription
( overrides: Partial<Stripe.Subscription> = {}, )
packages/stripe/test/_factories.ts:72
↓ 2 callersFunctioncreateTestCookie
( ctx: AuthContext, sessionToken: string, domain?: string, )
packages/better-auth/src/plugins/test-utils/cookie-builder.ts:16
↓ 2 callersFunctioncreateTransactionHarness
()
packages/core/src/context/transaction.test.ts:12
↓ 2 callersFunctioncreateUser
(email: string)
packages/stripe/test/webhook.test.ts:534
↓ 2 callersMethodcreateVerificationValue
(input: { expiresAt: Date; identifier: string; value: string; })
demo/nextjs/lib/scim-demo-employee.ts:92
↓ 2 callersFunctioncustomSessionClient
()
packages/better-auth/src/plugins/custom-session/client.ts:5
↓ 2 callersFunctiondataModelFor
* Every model this configuration writes, declared the way `auth generate` would.
packages/prisma-adapter/src/schema-check.test.ts:25
↓ 2 callersFunctiondecodeBasicCredentials
(authorization: string)
packages/core/src/oauth2/basic-credentials.ts:60
↓ 2 callersFunctiondecodeRefreshToken
* Decodes a refresh token for a client * * @internal
packages/oauth-provider/src/token.ts:465
↓ 2 callersFunctiondecodeRefreshTokenForLookup
( opts: OAuthOptions<Scope[]>, token: string, )
packages/oauth-provider/src/token.ts:492
↓ 2 callersFunctiondecodeVerificationRecord
( value: string, audience: SCIMDemoEmployeeVerificationRecord["audience"], )
demo/nextjs/lib/scim-demo-employee.ts:161
↓ 2 callersFunctiondecommissionSCIMConnection
(input: { database: DBAdapter; auth: AuthContext; projection: SCIMProjectionCoordinator; identity: SCIMIde
packages/scim/src/connection-decommission.ts:380
↓ 2 callersFunctiondefaultKeyHasher
(key: string)
packages/api-key/src/index.ts:27
↓ 2 callersFunctiondefaultKeyHasher
(otp: string)
packages/better-auth/src/plugins/email-otp/utils.ts:11
↓ 2 callersFunctiondefaultKeyHasher
(token: string)
packages/better-auth/src/plugins/two-factor/utils.ts:4
↓ 2 callersFunctiondefaultKeyHasher
(token: string)
packages/better-auth/src/plugins/one-time-token/utils.ts:3
↓ 2 callersFunctiondeleteApiKey
( ctx: GenericEndpointContext, apiKey: ApiKey, opts: PredefinedApiKeyOptions, )
packages/api-key/src/adapter.ts:538
↓ 2 callersFunctiondeleteApiKeyFromStorage
* Delete API key from secondary storage
packages/api-key/src/adapter.ts:339
↓ 2 callersFunctiondeleteCurrentUser
* Deletes the signed-in user and expires the session cookies on the * caller's response.
packages/better-auth/src/api/routes/update-user.ts:379
↓ 2 callersFunctiondeleteGroupMemberships
( adapter: Pick<DBAdapter, "deleteMany">, connectionId: string, groupId: string, memberships: readonly SCI
packages/scim/src/group-provisioning.ts:525
↓ 2 callersFunctiondeleteLogoutSession
( ctx: GenericEndpointContext, session: Session, )
packages/oauth-provider/src/logout.ts:602
↓ 2 callersFunctiondeleteManyWithHooks
( where: Where[], model: BaseModelNames, customDeleteFn?: | { fn: (where: Where[]) => void | Pro
packages/better-auth/src/db/with-hooks.ts:338
↓ 2 callersMethoddeleteOrganization
(orgId: string)
packages/better-auth/src/plugins/test-utils/types.ts:52
↓ 2 callersFunctionderiveEncryptionSecret
(secret: string, salt: string)
packages/better-auth/src/crypto/jwt.ts:52
↓ 2 callersFunctiondeserializeApiKey
* Deserialize API key from storage
packages/api-key/src/adapter.ts:161
↓ 2 callersFunctiondetectEnvironment
()
packages/telemetry/src/detectors/detect-runtime.ts:23
↓ 2 callersFunctiondetectFramework
(cwd: string, packageJson: PackageJson)
packages/cli/src/commands/init/utility/framework.ts:8
↓ 2 callersFunctiondetectPackageManager
()
packages/telemetry/src/detectors/detect-project-info.ts:4
↓ 2 callersFunctiondigest
(seed: number)
packages/core/src/db/adapter/get-id-field.test.ts:215
↓ 2 callersFunctiondispatchAuthEndpoint
( endpoint: Endpoint, input: DispatchContext, )
packages/better-auth/src/api/dispatch.ts:346
↓ 2 callersFunctiondrizzleResolver
(options: DrizzleResolverOptions)
docs/lib/copy-schema/adapter/drizzle.ts:23
↓ 2 callersFunctionelectronProxyClient
(options: ElectronProxyClientOptions)
packages/electron/src/proxy.ts:8
↓ 2 callersFunctionencodeBackupCodes
( codes: string[], secret: string | SecretConfig, options?: BackupCodeOptions | undefined, )
packages/better-auth/src/plugins/two-factor/backup-codes/index.ts:72
↓ 2 callersFunctionencodeBase64URL
(bytes: Uint8Array)
demo/nextjs/lib/scim-demo-employee.ts:102
↓ 2 callersFunctionencodeBasicCredentials
( clientId: string, clientSecret: string, )
packages/core/src/oauth2/basic-credentials.ts:37
↓ 2 callersFunctionencodeCbor
(value: CborValue)
packages/passkey/test/webauthn.ts:12
↓ 2 callersFunctionencodeClientData
(origin: string)
packages/passkey/src/passkey-origin.test.ts:29
↓ 2 callersFunctionenqueueStorageOperation
( state: StorageKeyState, operation: () => Promise<Result>, )
packages/expo/src/client-storage.ts:322
↓ 2 callersFunctionenqueueStorageWrite
( state: StorageKeyState, operation: () => Promise<Result>, )
packages/expo/src/client-storage.ts:337
↓ 2 callersFunctionensureFieldIndex
(index: MongoFieldIndex)
packages/mongo-adapter/src/mongodb-adapter.ts:297
↓ 2 callersFunctionerrorRedirectUrl
( base: string, error: string, description: string, )
packages/sso/src/saml/response-validation.ts:6
↓ 2 callersFunctionescapeRegExpChar
* Escapes a character if it has a special meaning in regular expressions * and returns the character as is if it doesn't
packages/better-auth/src/utils/wildcard.ts:7
↓ 2 callersFunctionevaluateRateLimit
( apiKey: ApiKey, opts: PredefinedApiKeyOptions, )
packages/api-key/src/rate-limit.ts:47
↓ 2 callersFunctionexchangeOAuthCallback
( ctx: GenericEndpointContext, provider: OAuthProvider, callback: OAuthCallbackInput, )
packages/better-auth/src/oauth2/callback.ts:25
↓ 2 callersFunctionexpandSCIMPatchNullValues
( operations: readonly SCIMPatchOperation[], resolveTarget: (path: string) => SCIMPatchValueTarget, )
packages/scim/src/null-attributes.ts:187
↓ 2 callersFunctionexpectedOriginUnavailable
(ctx: GenericEndpointContext)
packages/passkey/src/routes.ts:98
↓ 2 callersFunctionexpireExistingChunks
()
packages/better-auth/src/cookies/session-store.ts:168
↓ 2 callersFunctionexpoClient
(opts: ExpoClientOptions)
packages/expo/src/client.ts:249
↓ 2 callersFunctionextractAuthorizationCode
( authedClient: ReturnType< typeof createAuthClient<{ plugins: [ReturnType<typeof oauthProviderClient>];
packages/cimd/src/flows.test.ts:71
↓ 2 callersFunctionextractIPv4FromMapped
* Converts IPv4-mapped IPv6 address to IPv4 * e.g., "::ffff:192.0.2.1" -> "192.0.2.1"
packages/core/src/utils/ip.ts:48
↓ 2 callersFunctionextractPresentedAccessToken
(request: Request)
packages/cimd/src/mcp-e2e.test.ts:60
↓ 2 callersFunctionextractPresentedAccessToken
(request: Request)
packages/mcp/src/mcp.test.ts:62
↓ 2 callersFunctionextractReleaseNotesComment
( content: string, expectedVersion: string, expectedHead: string, )
packages/release-tooling/src/release-notes/comment.ts:127
↓ 2 callersFunctionextractRepeatedResourceFromForm
( request: Request, )
packages/oauth-provider/src/resources.ts:229
↓ 2 callersFunctionextractTokenError
(error: APIError)
packages/oauth-provider/src/resource-challenge.ts:47
↓ 2 callersFunctionfacebook
(options: FacebookOptions)
packages/core/src/social-providers/facebook.ts:105
↓ 2 callersFunctionfail
(message: string, error?: unknown)
packages/cli/src/utils/get-config.ts:399
↓ 2 callersFunctionfail
(code: string, description?: string)
packages/better-auth/src/plugins/oauth-popup/index.ts:171
↓ 2 callersFunctionfail
(error: Error)
e2e/smoke/test/cloudflare.spec.ts:63
↓ 2 callersFunctionfetchClientMetadataDocument
( ctx: GenericEndpointContext, clientIdUrl: string, cimdOptions: CimdOptions, validators?: { etag?: string
packages/cimd/src/client-store.ts:134
↓ 2 callersFunctionfetchDiscoveryDocument
( url: string, timeout: number = DEFAULT_DISCOVERY_TIMEOUT, isTrustedOrigin: (url: string) => boolean = ()
packages/sso/src/oidc/discovery.ts:455
↓ 2 callersFunctionfetchJwksFromUri
( jwksUri: string, fetchClientMetadataResource: ClientMetadataResourceFetch = globalThis.fetch, )
packages/oauth-provider/src/utils/client-assertion.ts:193
↓ 2 callersFunctionfetchOIDCEndpointResponse
( name: OIDCEndpointName, endpoint: string, init: RequestInit, isTrustedOrigin: (url: string) => boolean,
packages/sso/src/oidc/discovery.ts:381
↓ 2 callersFunctionfetchRefusingRedirects
( url: string, options?: BetterFetchOption, )
packages/core/src/oauth2/reject-redirects.ts:35
↓ 2 callersFunctionfetchUserImage
( baseURL: string | undefined, url: string, options?: Pick<ElectronClientOptions, "userImageProxy"> | undef
packages/electron/src/user.ts:17
↓ 2 callersMethodfindAccountOwnerByKey
(accountKey: AccountKey)
packages/core/src/types/context.ts:214
↓ 2 callersFunctionfindConsent
( ctx: GenericEndpointContext, clientId: string, userId: string, referenceId: string | undefined, )
packages/oauth-provider/src/utils/index.ts:1190
↓ 2 callersFunctionfindDeviceCodeByUserCode
* Preserve exact custom user codes, and normalize only default-alphabet codes.
packages/better-auth/src/plugins/device-authorization/routes.ts:84
↓ 2 callersFunctionfindInvalidTrustedProxies
(entries: string[])
packages/core/src/utils/ip.ts:300
↓ 2 callersFunctionfindJwtPlugin
(ctx: AuthContext)
packages/oauth-provider/src/utils/index.ts:106
↓ 2 callersFunctionfindManagedConnectionByCreationRequestId
( database: Pick<DBAdapter, "findOne">, creationRequestId: string, )
packages/scim/src/managed-connections.ts:353
↓ 2 callersFunctionfindNode
(obj: unknown, nodeName: string)
packages/sso/src/saml/parser.ts:10
↓ 2 callersFunctionfindOne
( query: Parameters<typeof base.findOne>[0], )
packages/better-auth/src/plugins/email-otp/email-otp.test.ts:679
↓ 2 callersFunctionfindOrCreateSCIMConnectionBinding
( database: Pick<DBAdapter, "create" | "findOne">, connectionId: string, provisioningDomainId: string | und
packages/scim/src/connection-state.ts:19
↓ 2 callersFunctionfindPatchAttribute
( attributes: readonly SCIMPatchAttributeDescriptor[], name: string, )
packages/scim/src/user-patch.ts:390
↓ 2 callersFunctionfindPrismaSchemaProblems
( dataModel: PrismaRuntimeDataModel, options: BetterAuthOptions, usePlural?: boolean | undefined, )
packages/prisma-adapter/src/schema-check.ts:96
↓ 2 callersFunctionfindRegisteredRedirectUri
* Finds the matching entry in a client's registered redirect URIs. * * For clients that are not `web`, registration limits loopback redirects to *
packages/oauth-provider/src/authorize.ts:304
↓ 2 callersFunctionfindSCIMGroupMemberships
( database: DBTransactionAdapter, scimUserIds: readonly string[], )
packages/scim/src/projection.ts:75
↓ 2 callersFunctionfindSCIMGroups
( database: DBTransactionAdapter, groupIds: readonly string[], )
packages/scim/src/projection.ts:92
↓ 2 callersFunctionfindSCIMProjectionDomainBatch
(input: { database: Pick<DBAdapter, "findMany">; provisioningDomainId: string; cursorUserId?: string | null
packages/scim/src/projection.ts:667
↓ 2 callersFunctionfindSCIMUsersByIds
( adapter: Pick<DBAdapter, "findMany">, connectionId: string, scimUserIds: readonly string[], )
packages/scim/src/group-provisioning.ts:766
↓ 2 callersFunctionfindSCIMUsersForMemberships
( adapter: Pick<DBAdapter, "findMany">, connectionId: string, memberships: readonly SCIMGroupMember[], )
packages/scim/src/group-provisioning.ts:756
↓ 2 callersFunctionfindSchemaProblems
( db: Kysely<unknown>, dbType: KyselyDatabaseType | undefined, expected: ExpectedSchema, )
packages/kysely-adapter/src/schema-check.ts:204
↓ 2 callersFunctionfindTeamMemberByKeyOrPair
( adapter: DBTransactionAdapter, data: { teamId: string; userId: string; membershipKey: string; }, )
packages/better-auth/src/plugins/organization/adapter.ts:47
↓ 2 callersFunctionfindVersionCommit
( ref: string, previousTag: string, version: string, )
packages/release-tooling/src/release-notes/collect.ts:308
↓ 2 callersFunctionfindWhereValue
(where: readonly Where[], field: string)
packages/scim/src/scim-group-cardinality.test.ts:49
↓ 2 callersFunctionfn
(data)
packages/better-auth/src/db/internal-adapter.ts:875
↓ 2 callersFunctionformatAdapterLabel
(adapter: DatabaseAdapter)
packages/cli/src/commands/init/utility/database.ts:67
↓ 2 callersFunctionformatEnvelope
(version: number, ciphertext: string)
packages/better-auth/src/crypto/index.ts:31
← previousnext →1,101–1,200 of 6,486, ranked by callers