Releases Index
Better Auth

Better Auth

$npx @buildinternet/releases get better-auth
Recently Shipped23 releases · updated Nov 11, 2026

The v1.8.0 betas reworked the v1.8.0 sign-in paths, and the November 3 security release has landed in v1.8.0-beta.5. The remaining betas are mostly two-factor and OAuth hardening.

Two-factor and phone sign-in behave differently in v1.8.0-beta.5. Plugin after-hooks on credential sign-in routes now see a null session while two-factor verification is pending. Passkey sign-in rejects responses without user verification when authenticatorSelection.userVerification is required. Phone sign-in with requireVerification needs sendOTP configured, or the route returns SEND_OTP_NOT_IMPLEMENTED, and password resets by phone require a verified number first.

OAuth provider requests got stricter. Form-encoded POSTs to /oauth2/authorize reject repeated standard parameters such as state with invalid_request, and repeated resource values are all kept instead of the last.

Custom profile mappings for Apple, Cognito, Discord, Dropbox, Facebook, GitHub, GitLab, Gumroad, Linear, Microsoft Entra ID, Notion, Patreon, PayPal, Railway, Slack, and Twitter(X) were reviewed against each provider's docs and retyped. Review any custom mappings for fields that are now optional or nullable before upgrading. The device-code DeviceAuthorizationGrant interface also changed: rename assertSessionRedemption to assertStandaloneUse and drop the removed members.

The JWT plugin verifies tokens with the stored key's algorithm rather than the token header's. Providers without a clientId now need it set to every client ID your apps sign in with. Separately, /admin/update-user requires user:set-phone to change phone numbers, so add set-phone to custom access control statements.

Client assertions now require issuer audience; PAR ships

preThis release30 featuresNew capabilities5 enhancementsImprovements to existing features10 fixesBug fixesAI-tallied from the release notes
better-auth · v1.8.0-beta.10

Client assertions such as private_key_jwt now require the provider's issuer as their only aud value and reject endpoint URLs with invalid_client, and the OAuth provider adds a pushed authorization request endpoint at POST /oauth2/par. Deployments using the OAuth provider or CIBA must run npx auth@latest migrate before upgrading to add the new oauthClient, oauthAccessToken, oauthRefreshToken, and cibaRequest columns.

Read more ↗

MCP auth needs jwksUrl and shared DPoP replay store

This release3 enhancementsImprovements to existing features13 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.23

RequireMcpAuth deployments that want to keep fetching signing keys over HTTP must now set jwksUrl, and createMcpProtectedRequestHandler in multi-instance or serverless setups needs dpop.replayStore pointed at a shared store. CORS layers that set their own Access-Control-Expose-Headers must include WWW-Authenticate so cross-origin clients can read OAuth and MCP challenges.

Read more ↗

Cloudflare Workers hangs fixed; revocation now expires cookies

This release16 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.22

Verification value consumption no longer hangs on Cloudflare Workers, and module-scope auth instances no longer log a schema validation error on every cold start. Revoking the current session or deleting a user now expires session cookies, and introspected tokens failing claim checks return 401 instead of 500.

Read more ↗

SCIM needs native transactions; Prisma update hits one row

This release1 featureNew capabilities1 enhancementImprovements to existing features24 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.21

SCIM now returns 501 on adapters without native transactions and requires switching to one with native transactions to provision users and groups, while the Prisma adapter's update changes only one matching row. The release also fixes Generic OAuth hanging on Cloudflare Workers with discoveryUrl, the OAuth provider returning [object Promise] as the refresh token, and Mongo indexes for unique fields to prevent duplicate concurrent sign-ups.

Read more ↗

Revoke all sessions now catches concurrently created ones

This release4 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.18

Revoking all sessions with secondaryStorage and storeSessionInDatabase now also revokes sessions created while the revocation is running, except those created by a session.delete.after hook. Fixed getTestInstance closing its Postgres pool and SQLite database when a test file finishes, MySQL test instances hanging, and introspected tokens being rejected when verifyOptions.typ is set.

Read more ↗

Remembered sessions survive rememberMe false; phone numbers no longer clobbered

This release9 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.17

Remembered sign-ins and sign-ups now refresh their session even if an earlier sign-in in the same browser used rememberMe: false, and the phone number plugin no longer stores an empty phoneNumber on sign-up or replaces a verified number when linking an account with an empty one. TOTP verification now accepts API key sessions so they can finish two-factor enrollment, and passkey registration and sign-in work when one passkey() plugin is shared between auth instances where only some set baseURL.

Read more ↗

Revoked sessions end; phone numbers require verification

This release20 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.16

Revoked sessions no longer stay usable with secondary storage or the cookie cache, and phone numbers are now stored only after verification. Email verification links and email-change codes are bound to the account they were issued to, OAuth string email_verified values like "false" are no longer treated as verified, and /admin/update-user now requires the user:set-phone permission.

Read more ↗

Cloudflare tokenEndpointAuthMethod deprecated; Stripe SDK v23 supported

This release2 featuresNew capabilities1 enhancementImprovements to existing features1 fixBug fixesAI-tallied from the release notes
better-auth · v1.7.13

The Cloudflare provider gains tokenEndpointAuth: { method } while tokenEndpointAuthMethod is deprecated but still supported. Also adds Vercel token endpoint auth options (dynamic OIDC tokens, private key JWT client assertions), Stripe SDK v23 support in the Stripe plugin, and fixes type declarations so type-only exports are no longer listed as values.

Read more ↗

ID token sign-in needs clientId; JWT and OAuth checks tightened

This release10 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.12

ID token sign-in now rejects tokens from providers with no clientId, since audience cannot be checked, so every provider using ID token sign-in must set clientId. The JWT plugin now verifies tokens with the stored key's algorithm and warns when issuer or audience is missing, and OAuth proxy callbacks run the same issuer and nonce checks as standard callbacks.

Read more ↗

Postgres int8 migration diffs fixed; Twitch and Paybin ID token validation

This release1 enhancementImprovements to existing features9 fixesBug fixesAI-tallied from the release notes
better-auth · v1.7.11

Fixed repeated PostgreSQL migration diffs for int8 columns and database-backed rate limiting returning an excessively large X-Retry-After value. ID token signature and claim validation is fixed for Twitch and Paybin sign-in, and CIMD metadata refreshes no longer overwrite concurrent administrator changes to discovered clients.

Read more ↗