@better-auth/cli
1.4.21 · 1 Mar 2026MIT175.4k / weekRepositoryHomepagenpmAtom feed
1.4.22 is the newest release of 1.x.
In short
15 new31 fixed
Release note
Features
Make update account on signin optional
Add getAccessToken api for oauth accounts
getActionsfrom client plugins to includeclientOptionsin get user client configAdd one time token generator
adapter: Allow providing
idin create methodanonymous: Custom anonymous names
api-key: Disable hashing API Keys
custom-session: Add ctx on custom session callback fn
generic-oauth: Support same provider account linking
generic-oauth: Authorization request headers
stripe: Migrate to stripe sdk v18.0.0
Bug Fixes
Username empty field on update guard
Docs on oauth refresh token fn
MapProfileToUser getting called twice during idToken login
Awaitable calls
Enforce override user info on oauth signin
Join waitlist banner styling
Fields for custom schema should be optional
UpdateAt field on banning/unbanning users
Improve signin builder and tabs functionality
Add a default value for generated fields
Resolve type error caused by incorrect plugin import
Resolve custom ts config path
Core schema model name definition on api-key
Username error code export
Resolve logo assets redirection and toaster styling issues
Remove unnecessary password hashing
Revoke session on password reset
Added password hashing to prevent timing attacks
Add default refreshAccessToken for microsoft provider
Pass context into createVerificationValue
Origin check failing when there is symbol in a query param
Remove userInfoUrl check to allow using custom function without url
getAccessTokenshould be available on the clientadmin: Handle redirecting banned users properly
api-key: Pass real rateLimitvalue from ctx.body
create-adapter: Get default model in
getModelnamedrizzle-adapter: Missing operators
generic-oauth: On link account make sure to match provider Id before updating existing account
generic-oauth: Include missing tokens in account linking
open-api: Misplaced requires properties
organization: Incorrect delete team error message
passkey: Add userDisplayName to the simplewebauthn generateRegistrationOptions call
stripe: Include priceId on list active subscriptions
stripe: Reactivate subcrition filtering to only active or trialing subscription
two-factor: Verification deletion on otp should use the correct ID
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.