@better-auth/cli
1.4.21 · 1 Mar 2026MIT175.4k / weekRepositoryHomepagenpmAtom feed
135 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
1.3.4
26 Jul 20251.3.3
23 Jul 2025Issue when setting rate limit storage with a different model name
1.3.2
21 Jul 2025Improve setting active org performance
1.3.1
20 Jul 2025Changed the Twitter provider to use "post" authentication instead of "basic" when validating the authorization code
organization: Dixed organization schema inference when multiple plugins are present in the plugins array
organization: Multi teams breaking active organization id type inference
1.3.0
19 Jul 2025Sveltekit cookie helper plugin
SSO plugin with OIDC and SAML support
Linear social provider
Features
Sveltekit cookie helper plugin
SSO plugin with OIDC and SAML support
Linear social provider
Add encryption for OTPs and other verification information
Notion provider
Add
sendOnSignInoption to make sending verification link in sign in route explicitAdd
inferAuthto infer plugin types and more on the client without needing client pluginsAdd
rememberMeoption tosignUpEmailAdd slack social provider
Add an option to encrypt oauth tokens by default
OnPasswordReset callback
AfterEmailVerification callback
SIWE plugin
Bug Fixes
Import setCookie from tanstack start core package
Exclude current user from username update checks
Correct way detect facebook limited token jwt
Update Discord link to use the correct invite URL in blogs section
Linking accounts for anon users with one tap and passkey
Don't require email for account linking
Add
imageoption tosignUpEmailtypes and schemaImplement standard Base64 encoding for HTTP Basic Auth in token refresh and validation
Schema generation when using advanced.databse.useNumberId
Mysql foreign key constraints on generate
Zodv4 migration leftover due to conflict
Sso typecheck
Global onSuccess callback hook not being called
admin: Throw an error if user id in
/remove-useris invalidadmin: Before create hook was not triggered when creating a user through the admin plugin
admin: Pass
ctxto user create db hookcli: Format drizzle schema output
drizzle-cli: Use serial as PK when
useNumberIdis enableddrizzle-cli: Use serial as PK when
useNumberIdis enabledphone-number: Verification value should be removed after successful password reset
1.2.12
28 Jun 2025account: Add placeholder URL for type inference in linkSocialAccount response
create-adapter:
getModelNameshould apply plural to custom model namescreate-adapter: TransformWhere should account for customTransformInput
Bug Fixes
account: Add placeholder URL for type inference in linkSocialAccount response
create-adapter:
getModelNameshould apply plural to custom model namescreate-adapter: TransformWhere should account for customTransformInput
create-adapter: Doesn't work with mongoAdapter
email-otp: Doesn't call onEmailVerification
1.2.11
28 Jun 2025api-key: Update should only use by ID
sveltekit: Only dynamic import $app/environment once
user-card: Refactor email verification button and update trusted origins
Bug Fixes
api-key: Update should only use by ID
sveltekit: Only dynamic import $app/environment once
user-card: Refactor email verification button and update trusted origins
username: Log the correct username
1.2.10
20 Jun 2025Allow passing
idin DB hookcreateLink account with idToken
Add Hugging Face provider
Features
Allow passing
idin DB hookcreateLink account with idToken
Add Hugging Face provider
cli: Allow cli to use custom adapter
createSchemaif implementedorganization: MaximumMembersPerTeam support
Bug Fixes
Support "ne" (not equal) filter in Prisma adapter
Propagate a secondary storage updates on updated user
Incremental scopes for Microsoft and return all granted scopes for Google
Remove active organization when member isn't found
DeleteUser check session freshAge using ms instead of sec
Always use custom errorURL when available
Duplicate oauth registration
Expose-headers override in bearer plugin when setting
set-auth-tokenDelete user should respect freshAge config
Use correct refresh token endpoint for github
OnLinkAccount trigger on phone number verification
Expose headers override in jwt plugin
email-otp: Auto-verify on email otp reset
email-verification: Improve email verification logic to check session and user email consistency
expo: Remove duplicated trusted origins
get-session: Missing
nulltype on /get-session whenthrow:trueis setoauth-proxy: Resolve current URL with precedence
organization: Organization with no members error
twitter: Update email verification logic in profile mapping
1.2.9
10 Jun 2025Reading the note…
1.2.8
16 May 2025Reading the note…
1.2.7
13 Apr 2025Reading the note…
1.2.6
12 Apr 2025Reading the note…
1.2.5
26 Mar 2025Reading the note…
1.2.4
13 Mar 2025Reading the note…
1.2.3
4 Mar 2025Reading the note…
1.2.2
3 Mar 2025Reading the note…
1.2.1
2 Mar 2025Reading the note…
1.2.0
1 Mar 2025Cleanup expired verification data on fetch
Disable default scopes and allow scopes to be passed on request
Move to better call version 1
Features
Cleanup expired verification data on fetch
Disable default scopes and allow scopes to be passed on request
Move to better call version 1
Captcha Plugin with multiple providers
Add VK ID social provider
Implement JWT token generation and retrieval with encryption support
Check organization slug
Support stroring dispaly username to store un-normalized username
Add Roblox social provider
Add total users table/collection count to admin plugin list-users endpoint
Add context to database hooks
Base64 conversion without Buffer
Add cloudflare worker basic tests
Add access control to admin plugin
API Key plugin
TikTok social provider
initBetter Auth CLI commandAdd disabling email and password signup config
Team support for organization
Passkey plugin with client-side
authenticatorAttachmentand globalauthenticatorSelectionconfigurationAdd
errorURLfor custom error pagesStripe plugin to handle subscriptions and customers
Bug Fixes
Update @better-fetch/fetch to version 1.1.14-beta.2 and clean up client options
Oauth failing when using drizzle adapter
Add last semi-colon to the compiled migrations to support Cloudflare D1 migration
Correct option name in the reset password error message
1.1.21
24 Feb 2025Reading the note…
1.1.20
24 Feb 2025Reading the note…
1.1.19
20 Feb 2025Reading the note…
1.1.18
14 Feb 2025Reading the note…
1.1.17
11 Feb 2025Reading the note…
1.1.16
5 Feb 2025Reading the note…
1.1.15
29 Jan 2025Reading the note…
1.1.14
16 Jan 2025Reading the note…
1.1.13
14 Jan 2025Reading the note…
1.1.12
14 Jan 2025Reading the note…
1.1.11
11 Jan 2025Reading the note…
1.1.10
4 Jan 2025Reading the note…
1.1.9
3 Jan 2025Reading the note…
1.1.8
1 Jan 2025Reading the note…
1.1.7
30 Dec 2024Reading the note…
1.1.6
30 Dec 2024Reading the note…
1.1.5
30 Dec 2024Reading the note…
1.1.4
27 Dec 2024Reading the note…
1.1.3
23 Dec 2024Reading the note…
1.1.2
23 Dec 2024Reading the note…
1.1.1
21 Dec 2024Reading the note…
1.1.0
20 Dec 2024OIDC Plugin: An experimental new plugin that lets you create your own OIDC-compliant server. Checkout plugin docs
Enterprise SSO Provider: A new plugin that allows you to sign in users with OIDC servers configured by users. It handles provisioning new users, integrates with the organization plugin, and more. (SAML support coming soon!) Checkout plugin docs
Hooks: a new API for hook. You no longer need to create a plugin—these allow you to modify any requests and responses within Better Auth. Check out Hook Docs
New Features
OIDC Plugin: An experimental new plugin that lets you create your own OIDC-compliant server. Checkout plugin docs
Enterprise SSO Provider: A new plugin that allows you to sign in users with OIDC servers configured by users. It handles provisioning new users, integrates with the organization plugin, and more. (SAML support coming soon!) Checkout plugin docs
Hooks: a new API for hook. You no longer need to create a plugin—these allow you to modify any requests and responses within Better Auth. Check out Hook Docs
Better Auth Utils: We made a typescript auth utility and Better Auth now depends on that for auth related utility needs.
Stop Impersonating API: Admins can now stop impersonating a user and return to their session without logging out and back in. .
Improvements and API Changes
Endpoints that previously returned the entire user object now only return a
token. This change allows for storing sensitive fields in the user table and eliminates unnecessary returned data. As a result, all endpoints, except/get-session, now enforce this.Expo plugin now requires a storage to be passed instead of defaulting to secure storage.
By default the bearer plugin now accepts unsigned tokens and provides an option to require signed tokens only.
User deletion now offers an improved user experience. It introduces a callback URL to redirect users to custom pages after their account is removed. Additionally, it accepts a
token, to enable custom flows.Replaced Consola with a custom logger for better compatibility with Cloudflare deployments.
Export available provider types
Bug Fixes
Get-config paths for missing slash for
/lib/serverRemove nanoid dependcy and genreate id manually
Export passkey only on its own route
Ensure that error messages thrown from a DB hook are returned unchanged on social callback
Skip updating userinfo on oauth callback
Protect phone number login with 2fa
Email-otp on signup breaking when emailVerification is requried
Sign In with Apple With ID Token not work
Type seralization error
ActiveOrgId should always refer to the ID instead of the slug
bearer: Pre-check token signature to ignore if invalid
jwt: Pass session on definePayload callback
social: OAuth should find a user based on a provider returned account id
1.0.22
16 Dec 2024Reading the note…
1.0.21
15 Dec 2024Reading the note…
1.0.20
14 Dec 2024Reading the note…
1.0.19
13 Dec 2024Reading the note…
1.0.18
12 Dec 2024Reading the note…
1.0.17
12 Dec 2024Reading the note…
1.0.16
12 Dec 2024Reading the note…
1.0.15
10 Dec 2024Reading the note…
1.0.14
8 Dec 2024Reading the note…
1.0.13
8 Dec 2024Reading the note…
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.