@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 removed8 new22 fixed
- Removed
Remove deep array merge when merging hooks context
Release note
The section about @better-auth/cli of a note shared by several packages.
Features
List organization memebrs with pagination and filter queries
Return false from
generateIdcallback to imply database-generated IDSupport multiple aud for apple oauth
Allow
getUserInfoto return number typeRemove revoked session from active sessions list
Add telemetry
cli: Added --yes for generate/migrate, deprecated --y
Bug Fixes
Shouldn't refresh a token if access token expires is undefined or null
Ensure session is added to context when reading from cookie cache
Make sveltekit plugin ALS-agnostic
Use same expires at date for cookie session data payload and signature
Resolve notion oauth user info extraction
Cast dates from db to Date when using date methods
Twitter refresh token requires basic authentication
Pass
loginHintto Microsoft oauth URLCast dates from session to Date when using date methods
Incorrect initialization of remaining value within API key
Add missing team reference in teamMember schema
Await
ctxin middlewarePlugins options type compatibility issue with
exactOptionalPropertyTypesenabled in ts-configClient secret should be optional in configuring the generic oauth plugin
Ensure zod v4 type annotations work with core types
- Removed
Remove deep array merge when merging hooks context
Allow returning response object to skip after hooks
Handle inconsistent user update error in phone number plugin
cli:
--yesoption does not work on@better-auth/cli generatecli: Prisma schema generate mismatch on custom plugin table names
cli: Only show the overwrite message when the schema file exists and the code has changed
deps: Update better-auth dependencies - in #3916
username:
isUsernameAvailableshould validate usernamesusername:
isUsernameAvailableshould validate usernames "username: Remove normalize transform for displayUsername
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.