Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.2.8

16 May 2025Where it was published

1.7.27 is the newest release of 1.x.

In short

15 new31 fixed

Security

15 advisories affect 1.2.8; 1.6.22 fixes them

10 more

Release note

Features

  • Make update account on signin optional

  • Add getAccessToken api for oauth accounts

  • getActions from client plugins to include clientOptions in get user client config

  • Add one time token generator

  • adapter: Allow providing id in create method

  • anonymous: 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

  • getAccessToken should be available on the client

  • admin: Handle redirecting banned users properly

  • api-key: Pass real rateLimitvalue from ctx.body

  • create-adapter: Get default model ingetModelname

  • drizzle-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.