Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.3.0

19 Jul 2025Where it was published

1.7.27 is the newest release of 1.x.

In short

39 new41 fixed1 internal

Security

14 advisories affect 1.3.0; 1.6.22 fixes them

9 more

Release note

Features

  • Sveltekit cookie helper plugin

  • SSO plugin with OIDC and SAML support

  • Linear social provider

  • Add encryption for OTPs and other verification information

  • Notion provider

  • Add sendOnSignIn option to make sending verification link in sign in route explicit

  • Add inferAuth to infer plugin types and more on the client without needing client plugins

  • Add rememberMe option to signUpEmail

  • Add slack social provider

  • Add an option to encrypt oauth tokens by default

  • OnPasswordReset callback

  • AfterEmailVerification callback

  • SIWE plugin

  • admin: Update user

  • anonymous: Update generateName to support returning a promise

  • api-key: Async support for verify key

  • api-key: requireName to enforce name on keys

  • drizzle: Support camel case schema generation

  • email-otp: Support email verification override

  • generic-oauth: Add support for additional token URL params in generic OAuth

  • magic-link: Support errorCallbackURL & newUserCallbackURL

  • oidc: Add refresh token support to discovery document and token endpoint

  • oidc: Support JWKs with JWT plugin

  • oidc: Add support for public clients with PKCE authentication

  • oidc-provider: Trusted clients

  • oidc-provider: Support encrypting and hashing secrets

  • organization: listUserInvitations adds the ability to list all invitations for a given user

  • organization: AdditionalFields for org, member, invitation & team

  • organization: Multi-team support

  • social-providers: Add Faceit Social Provider

  • social-providers: Add Faceit Social Provider "

  • sso: Configurable provider limit

  • stripe: Pass context obejct to stripe plugin callbacks

  • username: Check username availability

  • username: Add custom username normalization option

Bug Fixes

  • Import setCookie from tanstack start core package

  • Exclude current user from username update checks

  • Correct way detect facebook limited token jwt

  • Update Discord link to use the correct invite URL in blogs section

  • Linking accounts for anon users with one tap and passkey

  • Don't require email for account linking

  • Add image option to signUpEmail types and schema

  • Implement standard Base64 encoding for HTTP Basic Auth in token refresh and validation

  • Schema generation when using advanced.databse.useNumberId

  • Mysql foreign key constraints on generate

  • Zodv4 migration leftover due to conflict

  • Sso typecheck

  • Global onSuccess callback hook not being called

  • admin: Throw an error if user id in /remove-user is invalid

  • admin: Before create hook was not triggered when creating a user through the admin plugin

  • admin: Pass ctx to user create db hook

  • api-key: Incorrect rate limit error status code

  • api-key: Incorrect rate limit error status code

  • api-key: Non-expiring API keys (with expiresAt set to null) were being deleted by mistake

  • cli: Format drizzle schema output

  • db: Add varchar to postgres string mapping and normalize type comparison

  • drizzle-cli: Use serial as PK when useNumberId is enabled

  • drizzle-cli: Use serial as PK when useNumberId is enabled

  • dropbox: Added support for the token access type option

  • email-otp: Throw USER_NOT_FOUND when sign-up is disabled

  • email-otp: Throw USER_NOT_FOUND when sign-up is disabled

  • expo: Expo plugin should import types from the types path

  • generic-oauth: Error callback should avoid malformed URLs when the original URL already has query parameters

  • jwt: Allow to generate JWKS with other algorithm than the default one

  • mcp: Issue with hardcoded baseURL in withMcpAuth

  • mongodb: Honor custom generateId in create

  • next-cookies: Don't throw in monorepo workspaces

  • oauth: Google prompt doesn't allow +

  • oauth: Extended oauth2 tokens with refresh_token_expires_in field

  • oidc-provider: Relax offline_access scope validation by removing prompt=consent requirement

  • open-api: Include additional fields

  • organization: List-teams endpoint returns unknown

  • organization: Allow org owner to update their own roles

  • origin-check: Support protocol-specific wildcard trusted origins

  • phone-number: Verification value should be removed after successful password reset

  • social-providers: Twitch provider not returning if email is valid

  • sso: Saml redirection

  • stripe: Allow upgrading incomplete subscriptions

  • stripe: Prevent duplicate customers

  • two-factor: Incorrect default OTP period & fix incorrect docs

  • two-factor: Incorrect default OTP period & fix incorrect docs

  • two-factor: Getting totp uri shouldn't require twoFactor enabled

  • two-factor: Otp separator mismatch

  • two-factor: Use twoFactorEnabled flag instead of database lookup for OTP validation

  • username: Add callbackURL option to signInUsername

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.