@better-auth/cli
1.4.21 · 1 Mar 2026MIT175.4k / weekRepositoryHomepagenpmAtom feed
1.4.22 is the newest release of 1.x.
In short
1 security4 new20 fixed1 internal
- Security
organization: [security] updateOrgRole should check for userId properly
Release note
The section about @better-auth/cli of a note shared by several packages.
Maintenance update: We fixed lots of issues from the community. Thanks to everyone for contributing to better-auth.
Features
Add getActiveRoleMember
Database transaction support
sqlite: Remove autoincrement for SQLite
Bug Fixes
Ignore cookiecache on auth sensitive functions
Custom field for
refreshTokenExpiresAtReturn local IP in development mode
Make cookie cache respect
dontRememberMemodeNormalize zod imports
Check endpoint conflicts respect
methodRespect username validator
Set clientId in ProviderOptions to
unknownby defaultPick the first clientId for oauth provider
Remove use of
global.cryptoShould infer types correctly when empty list of plugins is provided
Correct MongoDB adapter import path in CLI
Make sure fetch function doesn't get called repeatedly on
onMountPrevent lastLoginMethod plugin from setting cookie on failed auth
cli:
infoshows the correct versioncli: Add missing JSON type to schema generation
organization:
checkRolePermissionshouldn't be a promiseorganization: Member and team hooks should apply on create organization
organization: Before org create hooks not applying customized data
- Security
organization: [security] updateOrgRole should check for userId properly
organization: Restrict role check by user id
tiktok: Remove
client_secrectfrom authorizationUrl
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.