Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.2.4

13 Mar 2025Where it was published

1.7.27 is the newest release of 1.x.

In short

10 new33 fixed

Security

15 advisories affect 1.2.4; 1.6.22 fixes them

10 more

Release note

Features

  • Support promise return trusted origins

  • Support reverse proxied base URLs

  • Add Kick social provider

  • account: Multiple account with the same provider

  • admin: Custom banned user error message

  • generic-oauth: Allow basic auth

  • oidc-provider: Implement OIDC rfc7591 compliant /register endpoint

  • organization: Allow passing teamId in addMember

Bug Fixes

  • Update session cookie after in place email change

  • Lowercase email in change email process, find as it is

  • Should consitently use defaultErrorURL for fallback error redirections

  • Use account ID instead of compound key for account unlinking

  • Accept secure cookie flag on getSessionCookie helper

  • Remove otp code from the response of send phone number otp

  • Use subscription Id to fetch the current active subscription from stripe

  • On change email request for unverified emails should use the newEmail on verification token payload

  • admin: Fetch session on has permission checks

  • admin: Only evaluate permissions for access control

  • api-key: Creating API keys metadata always returns null

  • api-key: Results of verify endpoint's metadata isn't parsed

  • drizzle-adapter: Add lt and lte query operators

  • jwt: Use context.secret instead of relying on user passed secret to not fail on build

  • jwt: Improve private key decryption error handling

  • multi-session: Return only unique user sessions

  • multi-session: Use small cased cookie name inside revoke endpoint

  • oauth: Remove state value on expiry

  • organization: Remove unused schema type and make team creator optional

  • organization: Custom permissions access control type inference breaking on the client

  • organization: Use membership limit to fetch members user data

  • organization: Properly throw error on update organization

  • organization: Check permission types and support multiple permission on hasPermissions checks

  • organization: Multiple role array not referenced properly

  • phone-number: Prevent duplicate phone number update

  • rate-limiter: Use better path extraction for rate limiting

  • roblox: MapProfileToUser should run before returning user info

  • stripe: Convert subscription period timestamps to Date objects

  • stripe: Webhook constructor should use async version

  • stripe: Add origin check on success callback

  • stripe: Inconsistent referenceId usage

  • stripe: Call onCustomerCreate callback handle error logging

  • stripe: Rely on subscription Id instead of reference ID for subscriptions

  • two-factor: Custom user options should be passed to backup code generator

  • types: Passing body breaking fetchOptions throw:true inference

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.