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.9

23 Dec 2025Where it was published

1.4.22 is the newest release of 1.x.

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

In short

1 breaking1 deprecated12 new1 faster31 fixed2 internal

  • Breaking

    admin: Prevent impersonating admins by default

  • Deprecated

    sso: Deprecate trustEmailVerified

Release note

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

Features

  • Add ctx.isTrustedDomain helper

  • Drizzle pg supports JSON

  • Add Refresh Token Support to Kick OAuth Provider

  • Add additionalFields option in verification table schema

  • Add patreon social provider

  • Add a global backgroundTasks config option to defer actions like sending email and updates to run after response is sent

  • Breaking

    admin: Prevent impersonating admins by default

  • admin: Add support role with permissions for user updates and enforce role change validation

  • saml: Assertion timestamp validation with per-provider clock skew

  • saml: Validate SAML crypto algorithms during initial phase

  • saml: Enforce one-time use of SAML assertions

  • saml: Reject deprecated SAML signature and digest algorithms

  • saml: Reject deprecated SAML signature and digest algorithms

Bug Fixes

  • Add helper types to exports

  • Avoid throwing on client side

  • Export organization plugin types

  • Pathname should be normalized when basePath is set to root

  • Prematurely deleting active sessions in secondary storage

  • Make sure non-chunked session data cookie is cleared

  • Array field handling across adapters and schema generation

  • StoreStateStrategy default to database if provided

  • Should always remove 2FA verification token after successful verification

  • Prevent stateless refresh with database configured

  • Revert token masking in listSessions route

  • Compatible with openapi 3.1

  • Properly merge updated data in account cookie

  • Preserve = padding in parsed cookies

  • Unify SSO/OAuth account linking and add domain-based org assignment to all sign-in flows

  • Respect BETTER_AUTH_TRUSTED_ORIGINS env variable

  • Delete verifications with hooks

  • Respect IP headers in dev/test environments

  • Trusted origins resolving

  • Update-user breaking during stateless auth

  • Export necessary adapter types

  • Use operator in list members where clause

  • Don't set state query param if state is not provided

  • Correct wildcard pattern matching for trustedOrigins

  • cli: secret generates empty

  • cli: Deduplicate drizzle schema relationships

  • cli: Cmd info --json unexpected exit with 1

  • cli: Cmd info --json unexpected exit with 1

  • core: Allow returning null in getUserInfo in provider options

  • saml: Enforce trusted provider check

  • saml: Remove signature validation bypass

  • sso: Safely parse provider configs on registration

  • Deprecated

    sso: Deprecate trustEmailVerified

  • sso: Enforce domain verification in assignOrganizationByDomain

Performance

  • Add index on organizations slug field

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.