@better-auth/cli
1.4.21 · 1 Mar 2026MIT175.4k / weekRepositoryHomepagenpmAtom feed
1.4.22 is the newest release of 1.x.
In short
3 removed2 deprecated38 new2 faster105 fixed6 internal
- Removed
Remove deprecated
ssoClientexport from client plugin - Removed
Remove deprecated forgetPassword endpoints
- Removed
organization: Remove
autoCreateOnSignUpoption as it's not implemented yet - Deprecated
Deprecate
options.advanced.generateIdtype - 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
returnHeaderstogetSessionWaku 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
storeStateStrategyEnhance PostgreSQL support for non-public schema by respecting
search_pathconfigurationAdd polar oauth provider
Session store chunking
Stateless session management
Esm only
Implement automatic server-side IP detection
Async import in
getAdapterImproved API error page
Add request state
Add support for uuids
Auto-index CLI
Expose additional http methods
better-auth/minimalAdd 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
clicli: 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.flooraround the division when calculating TTLTtl 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
requestPasswordResetCookie 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.generateIdtype 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_hooksdirectlyUndeclared variable reference on docs
Argument
whereof type TwoFactorWhereUniqueInput needs at least one ofidargumentsMobile ai search responsiveness
Type compatibility with
exactOptionalPropertyTypes- Removed
Remove deprecated
ssoClientexport 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
HookEndpointContextandInternalContextAdd optional chaining for process.platform
User-agent requirement when fetching from clients
Unused peer dependency
Rename
shatobranchand made itcanaryby default- Removed
Remove deprecated forgetPassword endpoints
Respect onAPIError.errorURL in OAuth callback flow
Call db hooks when calling
deleteUserAllow 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
undefinedtype for optional property typesType 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
stringinference for additionalFieldsUnsanitized 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
ctxoverrequestin plugin optionsUse
identityinstead ofserialfor pg schemaZoom refresh token
/change-emailshould trigger session signalResolve 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
lastRequestwhen calling updateApiKeyapi-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
autoCreateOnSignUpoption as it's not implemented yet organization: Pass
ctxto DB hooksorganization: Allow passing id through
beforeCreateOrganizationorganization: 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
exactOptionalPropertyTypesorganization: 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
emailfrom querypasskey: Atom listeners not working
passkey: Passkey breaks with
throw: truepasskey: 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
ssoplugin exportsso: 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:
getCustomerCreateParamsnot actually being calledstripe: 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
AuthLazy 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.