Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.2.0

1 Mar 2025Where it was published

1.7.27 is the newest release of 1.x.

In short

35 new15 fixed

Security

15 advisories affect 1.2.0; 1.6.22 fixes them

10 more

Release note

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

  • init Better Auth CLI command

  • Add disabling email and password signup config

  • Team support for organization

  • Passkey plugin with client-side authenticatorAttachment and global authenticatorSelection configuration

  • Add errorURL for custom error pages

  • Stripe plugin to handle subscriptions and customers

  • admin: Add adminUserIds option for custom admin access control

  • client: Add basePath option on createAuthClient

  • mongodb-adapter: Support custom ID generation in MongoDB adapter

  • oidc: Allow header auth for token endpoint

  • one-tap: Improve Google One Tap integration with JWT verification and improved prompt handling

  • one-tap: Implement account linking

  • organization: Support multiple roles

  • organization: Add option to keep current active organization when creating a new one

  • phone-number: Add reset password functionality with phone number

  • social-providers: Add option to disable default scopes

  • username: Add default validation and options for validating username

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

  • anonymous: Link account user and session type should be less strict

  • auth: Use options.baseURL instead of ctx.baseURL on trusted origins

  • generic-oauth: Store additional token details during account linking

  • init-cmd: Dependencies do not install if ENVs are skipped

  • kysely-adapter: Handle field conversion on where clauses

  • oidc-plugin: User info endpoint casing to match OIDC spec

  • oidc-provider: Add support for plain PKCE code challenge method and default config param allowPlainCodeChallengeMethod

  • one-tap: Update import path for generateRandomString to fix unsupported crypto import for react native

  • open-api: Convert path parameters to OpenAPI format

  • organization: Respect membershipLimit

  • organization: Improve type inference and session handling

  • origin-check: Support callback URLs with query parameters

  • two-factor: Should respect remember me value when a user logins in with 2fa

  • two-factor: Should respect remember me value when a user logins in with 2fa

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.