Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.2.6

12 Apr 2025Where it was published

1.7.27 is the newest release of 1.x.

In short

30 new43 fixed

Security

15 advisories affect 1.2.6; 1.6.22 fixes them

10 more

Release note

Features

  • MapProfileToUser in vk social-provider

  • One-time token plugin

  • createAdapter and useNumberId

  • Support user data mapping in id token social sign-in

  • Update hover style for light mode in community page

  • Zoom social provider

  • (captcha plugin) adding support for Google ReCAPTCHA v3 and hCaptcha

  • Openapi spec update

  • Have-i-been-pwned plugin

  • Support custom issuer totp

  • Delete token expiry configuration

  • Add option to disable session refresh on use

  • admin: Add support for passing multiple roles as array

  • email-otp: Support attempt numbers for email-otp

  • facebook: Add support for business login using config ids

  • generic-oauth: Added field discoveryHeaders to GenericOAuthConfig

  • jwt: Add sub claim and getSubject

  • oauth2: Override user info on provider sign-in

  • organization: Add invitation limit

  • organization: Support multiple permissions check

  • phone-number: Add attempts check

  • phone-number: Add number of attempts configuration

  • phone-number: Add phone number verification requirement before sign-in

  • provider: Twitter email support

  • react-start: Add react-start integration for cookie handling

  • socialLink: Add support for custom scopes in social account linking

  • stripe: Restore subscription

  • two-factor: Refactor two-factor authentication with better error handling, configurable otp limits and verification

  • username: Export the correct error codes for the plugin

Bug Fixes

  • Import orders and alias to avoid conflict in ac code examples

  • Fallback to checking main db on session retrieval when storeSessionInDatabase is enabled

  • Export oAuth types

  • Og image compat

  • Og image compatibility on multiple link previews

  • Tooltip arrow

  • Tooltip arrow pointer

  • Forget password flow failing because of id conversion

  • Dep issue

  • Deployment compat issue

  • Verify github email when profile has an email

  • Docs syntax spacing

  • GenericOAuth default redirectURI for account linking

  • Missing disableRefresh type in server side getSession

  • Redirect to defaultErrorURL if errorURL doens't exist

  • Plugin middleware docs

  • Improve header value retrieval for IP address extraction

  • Prisma client docs

  • Community page interaction

  • Community page interaction

  • Hover style for light mode in community page

  • IpAddress and userAgent missing on server authentication

  • Missing export one time token plugin

  • Delete from session table when stopImpersonate called

  • Filter out fields with returned: false from session cookie cache

  • Rethrow error from db hooks if it is APIError instances

  • admin: Pass where clause to adapter.count to fix total value on listUser

  • admin: DefaultRoles, adminRoles + others not applying user config

  • admin: 'dontRememberMe' cookie handling during impersonation

  • api-key: Return value of permissions should be object, not string

  • api-key: Update rateLimitEnabled default to consider options

  • apple: Update responseType to include code and id_token

  • custom-session: Custom session failing to set cookies

  • generic-oauth: Should check for email after mapProfileToUser

  • oauth: Encode clientId and clientSecret in authorization header

  • oauth-proxy: Extend callback and sign-in path matchers to include /oauth2/callback and /sign-in/oauth2

  • oidc-provider: Add cookie options for path and sameSite in authorize

  • open-api: Hide disabled paths

  • organization: Update default invitation expiration time to use seconds

  • organization: Fix conditional teamId inference

  • organization: UpdateMemberRole failing if issuer has multiple roles

  • stripe: Allow customizing subscription schema

  • stripe: Throw err if passed referenceId when no subscription authorizeReference` is defined

  • stripe: Update referenceId in checkout session to use client_reference_id instead of metadata

  • two-factor: 2fa error codes failing to infer

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.