Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.3.8

4 Sep 2025Where it was published

1.7.27 is the newest release of 1.x.

In short

34 new41 fixed

Security

15 advisories affect 1.3.8; 1.7.0 fixes them

10 more

Release note

Features

  • Support to infer error types from endpoint

  • Support node:sqlite

  • Remote sign a jwt payload

  • Support device authorization

  • Support custom schema merging in SIWE plugin

  • Add figma provider

  • Enhance Microsoft Entra ID type definitions

  • Add onUpdate field on db schema generation

  • Add 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 @default and @updatedAt for prisma generator

  • Use defaultNow() for drizzle timestamp fields

  • admin: Get user

  • admin: /admin/update-user role as array

  • atlassian: Add atlassian social provider

  • cli: Add info script

  • cognito: Add amazon cognito provider

  • demo: Improve sign-up component

  • jwt: Add disableSettingJwtHeader flag to prevent issuance of signed jwt

  • jwt: Jwks remote url

  • mcp: Add protected-resource metadata endpoint

  • microsoft: Add support for setting authority

  • openapi: Support Scalar Theme

  • org: Dynamic Access Control (Experimental)

  • organization: Organization life cycle hooks

  • paypal: Add paypal OAuth2 provider

  • salesforce: Add salesforce provider

  • social: Add Line provider

  • social: Add Kakao, Naver provider

  • stripe: Add locale to stripe billing portal options

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-key for all auth endpoint

  • Avoid 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 onUpdate not working

  • Member 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

  • apple: Ensures name is always present in profile for mapProfileToUser

  • apple: Allow audience to be string - by **efcf5787** [( stri)](https://github.com/better-auth/better-auth/commit/ string (#4219))

  • cli: Check for undefined defaultValue instead of truthy value when generating drizzle schema

  • cli: generate throws error with default export

  • cli: Incorrect drizzle schema gen

  • cli: Simplify and correct comma insertion logic in plugin array

  • client: Prevent proxy promise-like behavior

  • client: Prevent proxy promise-like behavior

  • client: Avoid atom to be proxy

  • custom-session: Also mutate multi-session response

  • db: Special case schema generation ID

  • expo: Fix the inability to dynamically import a dependency

  • expo: Fix signout clobbering store session properties

  • oauth2: Correct basic auth header construction for refresh token

  • oidc: Allow custom schemas

  • oidc: Specify foreign key references in the schema

  • oidc-provider: Handle string timestamps in user profile claims

  • organization: Was possible to remove sole org owner

  • stripe: Fix unset values on session completed with trial

  • stripe: Allow sync function to get plans

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.