@better-auth/cli
1.4.21 · 1 Mar 2026MIT175.4k / weekRepositoryHomepagenpmAtom feed
1.4.22 is the newest release of 1.x.
In short
17 new27 fixed
Release note
The section about @better-auth/cli of a note shared by several packages.
Features
Support to infer error types from endpoint
Support
node:sqliteRemote sign a jwt payload
Support device authorization
Support custom schema merging in SIWE plugin
Add figma provider
Enhance Microsoft Entra ID type definitions
Add
onUpdatefield on db schema generationAdd onInvitationAccepted callback for org invitations
Add query parameter to useSession().refetch() for cache control consistency
Add last login method plugin
Check endpoint conflits
Add json field type
Add
@defaultand@updatedAtfor prisma generatorUse
defaultNow()for drizzle timestamp fieldscli: Add
infoscript
Bug Fixes
Constant time compare
Secondary storage should allow returning both string and parsed json
Telemetry should be opt in not opt out
Show error stack in debug mode
Move stack check into inner function
Check
x-api-keyfor all auth endpointAvoid general oauth flow duplicate user
Small dx for device login
Invalid pages on docs throw a 500 server error instead of 404
Make zod as dependency
Device authorization interval
Schema
onUpdatenot workingMember not exist on org
Never type still requires setting clientId to never
Team id zod schema meta property for array type
Resolve field naming inconsistency in account listing endpoint
Changelogs incorrect mentions
Leave error from fetch API as-is
Update organization requiring all additional fields for update payload
Prevent build error for node:sqlite
Prevent undefined from passed to adapter in username plugin
Add missing defaultValue on core schema
Strict social provider type
cli: Check for undefined defaultValue instead of truthy value when generating drizzle schema
cli:
generatethrows error with default exportcli: Incorrect drizzle schema gen
cli: Simplify and correct comma insertion logic in plugin array
organization: Was possible to remove sole org owner
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.