Packages

@better-auth/cli

1.4.21 · 1 Mar 2026MIT175.4k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.What to use instead
Your version

1.4.0

22 Nov 2025Where it was published

1.4.22 is the newest release of 1.x.

npm marks 1.4.0 as deprecated: Package no longer supported. Contact Support at npmjs.com/support for more info.

In short

3 removed2 deprecated38 new2 faster105 fixed6 internal

  • Removed

    Remove deprecated ssoClient export from client plugin

  • Removed

    Remove deprecated forgetPassword endpoints

  • Removed

    organization: Remove autoCreateOnSignUp option as it's not implemented yet

  • Deprecated

    Deprecate options.advanced.generateId type

  • Deprecated

    cli: DefaultNow is deprecated in schema for Drizzle with SQLite

Release note

The section about @better-auth/cli of a note shared by several packages.

Features

  • Bypass transaction with async local storage

  • Add returnHeaders to getSession

  • Waku integration guide

  • Add support for custom callback for authorization url

  • Additional fields on account

  • Add support for custom callback for token url

  • Enum support for drizzle schema

  • Nextjs 16 guide

  • Add storeStateStrategy

  • Enhance PostgreSQL support for non-public schema by respecting search_path configuration

  • Add polar oauth provider

  • Session store chunking

  • Stateless session management

  • Esm only

  • Implement automatic server-side IP detection

  • Async import in getAdapter

  • Improved API error page

  • Add request state

  • Add support for uuids

  • Auto-index CLI

  • Expose additional http methods

  • better-auth/minimal

  • Add support for custom response status codes

  • Support pass raw function as middleware

  • Support pass raw function as middleware "

  • Adapter join support

  • Refactor fetch plugins config disableDefaultFetchPlugins to include userAgentPlugin

  • Utilize database joins across better-auth

  • Support storing account data in a cookie

  • Adding support for SCIM provisioning

  • Add support for organization slug on list members

  • cli: Add mcp client configs from cli

  • cli: Support Cloudflare Workers virtual module imports

  • core: Replace ZodType with @standard-schema/spec

Bug Fixes

  • Device authorization plugin

  • Device authorization plugin

  • Reduce any type in generator.ts

  • Refresh secondary storage sessions on user update

  • Allow disable database transaction

  • Wrap Math.floor around the division when calculating TTL

  • Ttl sessions list expiration

  • Tests failing due to clock drift

  • Refresh secondary storage sessions on user update

  • Refresh secondary storage sessions on user update

  • Support compressed ipv6 format

  • Add required constraint to slug filed in org plugin

  • Use consistent messaging on requestPasswordReset

  • Cookie size limit shouldn't throw error

  • Handle symbols in proxy get trap to prevent TypeError

  • Ttl for rate limited secondary storage

  • Properly encode callback url for email verificaiton

  • Session update database hook should expect partial session type

  • Deprecated

    Deprecate options.advanced.generateId type

  • Api keys should properly check if a request is from client or server

  • Refactor account deletion functions to trigger database hooks

  • Improve username transformation logic

  • Ensure falsy values are valid default values

  • Import node:async_hooks directly

  • Undeclared variable reference on docs

  • Argument where of type TwoFactorWhereUniqueInput needs at least one of id arguments

  • Mobile ai search responsiveness

  • Type compatibility with exactOptionalPropertyTypes

  • Removed

    Remove deprecated ssoClient export from client plugin

  • GetAcccessToken refresh should properly refresh when oauth tokens are encrypted

  • Resolve custom URL scheme origin matching with wildcards

  • Respect additionalFields returned config for user data when setting cookie cache

  • Correct type HookEndpointContext and InternalContext

  • Add optional chaining for process.platform

  • User-agent requirement when fetching from clients

  • Unused peer dependency

  • Rename sha to branch and made it canary by default

  • Removed

    Remove deprecated forgetPassword endpoints

  • Respect onAPIError.errorURL in OAuth callback flow

  • Call db hooks when calling deleteUser

  • Allow user update to handle additional fields and validation

  • Missing email validation

  • Urls without protocol shouldn't be able to satisfy a wildcard origin

  • Use standard validator

  • Add undefined type for optional property types

  • Type mismatch for 'banned' on UserWithRole

  • Delete duplicate email existence check in changeEmail endpoint

  • Add missing userId in listAccounts response

  • Trigger use session on revoke sessions

  • string inference for additionalFields

  • Unsanitized endpoints provided dates will cause DB insert failure

  • Update hooks return should merge with original data

  • Dont trigger session refresh on magic-link sign-in

  • Treat generateId "serial" as numeric ID and correct UUID column types across adapters

  • Validate baseURL protocol and improve error messages

  • Use ctx over request in plugin options

  • Use identity instead of serial for pg schema

  • Zoom refresh token

  • /change-email should trigger session signal

  • Resolve SESSION_IS_NOT_FRESH error with cookieCache

  • Preserve provided string IDs in the MongoDB adapter when they are not valid ObjectId

  • GenericOAuth and SSO ignore discoveryUrl for authorization

  • Remove active session requirement for change email verification

  • api-key: Cascade api keys on user deletion

  • api-key: Cascade api keys on user deletion

  • api-key: Calling client on server side

  • api-key: Correct refill interval time calculation

  • api-key: Shouldn't issue api key a mock session by default

  • api-key: Don't update the lastRequest when calling updateApiKey

  • api-key: Remove incorrect usage tracking in updateApiKey

  • Deprecated

    cli: DefaultNow is deprecated in schema for Drizzle with SQLite

  • cli: Timestamp in schema for Drizzle with SQLite

  • cli: Move type dependencies to devDependencies

  • core: Correctly set typesVersions paths

  • organization: Decouple client and server permission checks

  • organization: Decouple client and server permission checks

  • organization: Membership check for organizations with large member counts

  • Removed

    organization: Remove autoCreateOnSignUp option as it's not implemented yet

  • organization: Pass ctx to DB hooks

  • organization: Allow passing id through beforeCreateOrganization

  • organization: Prevent empty name and slug in create/update

  • organization: Certain parameters not showing in client types

  • organization: Prevent duplicate slug on organization update

  • organization: Compatibility with declaration on tsconfig.json

  • organization: Compatibility with exactOptionalPropertyTypes

  • organization: Typecheck node exceeds the maximum length

  • organization: Fix the schema type

  • organization: RemoveTeamMember breaks for prisma

  • organization: Correct migration order when dynamicAccessControl is enabled

  • organization: Deleting member from org doesn't delete them from teams

  • organization: All endpoints should properly infer additional fields

  • organization: ActiveOrgId no longer inferred after enabling dynamic AC

  • passkey: Remove email from query

  • passkey: Atom listeners not working

  • passkey: Passkey breaks with throw: true

  • passkey: Wrong Session type being used on passkey

  • passkey: Filter delete passkey with userId

  • passkey: Ensure addPasskey returns passkey data instead of undefined

  • sso: Safe json parsing for saml/oidc configs

  • sso: Prevent duplicate SSO provider creation with same providerId

  • sso: OIDC scopes should fallback to provider scopes

  • sso: Add deprecated flag to the old sso plugin export

  • sso: Move oauth2-mock-server dep into devDependencies for sso package

  • sso: Use the internalAdapter for user queries to avoid skipping database hooks

  • sso: Respect disableImplicitSignUp in SAML callback

  • sso: Prevent server instance from leaking to client

  • sso: Export SSOProvider type

  • stripe: OnCustomerCreate should be called even if update user isn't returned

  • stripe: Update with an existing subscription

  • stripe: Sync customer email on db change

  • stripe: getCustomerCreateParams not actually being called

  • stripe: Throw error if event failed to be constructed

  • stripe: Check for reference IDs inside during Stripe reference validation

  • stripe: Stripe error codes should be returned from the plugin

  • stripe: Remove TS error suppression updating getCheckoutSessionParams

  • stripe: Prevent duplicate customer creation on signup

  • stripe: Return updated subscription in onSubscriptionUpdate callback

  • stripe: Throw error if query.referenceId is defined

  • stripe: Cancel subscription fails with Prisma

  • types: Include null in getSession return type

Performance

  • Improve type Auth

  • Lazy load create telemetry

  • Lazy load create telemetry "

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.