Zum Inhalt springen

Betterauth Updates & Release Notes

Einträge
67
Quellen
1
Zuletzt aktualisiert

Folge Betterauth, um die Release Notes in deinen Feed zu holen.

Betterauth von Better Auth

v1.7.17

better-auth

Bug Fixes

  • Fixed sessions created by a session.delete.after hook being treated as revoked during "revoke all sessions" when using secondaryStorage with storeSessionInDatabase (#12212)
  • Fixed remembered sign-ins and sign-ups to refresh their session even if an earlier sign-in in the same browser used rememberMe: false (#12181)
  • Fixed denying a device authorization request to reject a revoked session that is still in the cookie cache (#12216)
  • Fixed IP wildcard trusted origins such as exp://192.168.*.*:* matching custom-scheme hosts with out-of-range or zero-padded octets (#12217)
  • Fixed the phone number plugin storing an empty phoneNumber on sign-up and replacing a verified number when linking an account with an empty phone number (#12219)
  • Fixed TOTP verification rejecting API key sessions so they can now finish two-factor enrollment (#12211)
  • Fixed trusted devices being ignored when an app runs the two-factor sign-in step from its own hook on another sign-in path, such as email OTP (#12228) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.8.0-beta.5

[!IMPORTANT] Action required

  • If you write plugin after-hooks for credential sign-in routes, handle a null new session while two-factor verification is pending. (#12202)
  • If you set authenticatorSelection.userVerification to required, passkey sign-in now rejects responses without user verification. (#12202)
  • If you use phone sign-in with requireVerification, configure sendOTP. Without it the route returns SEND_OTP_NOT_IMPLEMENTED. (#12202)
  • If users reset passwords by phone, they must verify the number first. Otherwise resetPassword returns PHONE_NUMBER_PENDING_VERIFICATION. (#12202)
  • If you use sessions from enableSessionForAPIKeys on passkey registration, device-code approval, two-factor enrollment, phone number changes, social account linking, or organization invitations, those requests are now refused. If you call linkOAuthAccount directly, pass the session that started the link in OAuth state. (#12202)

better-auth

❗ Breaking Changes …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.16

better-auth

Bug Fixes

  • Fixed revoked sessions staying usable with secondary storage or the cookie cache. Bulk revocation now ends sessions missing from the cached list, and passkey registration, device authorization, two-factor, social account linking, and phone number changes check the session store (#12198)
  • Fixed phone numbers being stored before they are verified. Sign-up and sign-in reject a phoneNumber in the request, social profiles no longer set an unverified number, and verification codes use their own namespace (#12198)
  • Fixed /admin/update-user changing phone numbers without permission. It now requires user:set-phone, so add set-phone to custom access control statements (#12198)
  • Fixed email OTP accepting more guesses than allowedAttempts under concurrent requests, and bound email change codes to the requesting account (#12198)
  • Fixed user lookup by email matching a different address on accent-insensitive database collations (#12198)
  • Fixed email verification and change email links working for an account other than the one they were issued to (#12198) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.15

better-auth

Bug Fixes

  • Fixed organization and API key metadata, and OAuth proxy sign-ins with a constructor field in additionalData, failing with a prototype pollution error (#12142)
  • Improved BETTER_AUTH_SECRETS error messages to report the entry position instead of including the entry value (#12098)
  • Fixed the admin update-user endpoint to reject data.id with a 400 error instead of attempting to change the user's primary key (#12099)
  • Fixed the admin plugin to reject banned users when a session is created outside an endpoint, such as through internalAdapter.createSession (#12100)
  • Fixed headers and cookies set by a non-returning hooks.before hook being dropped from the response, with the endpoint's value winning when both set the same header or cookie (#12145)
  • Fixed the Vue client's useSession(useFetch) returning no session during Nuxt SSR when baseURL is inferred from the environment (#12109) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.6.34

better-auth

Bug Fixes

  • Fixed ACCOUNT_NOT_FOUND when retrieving an access token after stateless OAuth sign-in links a new provider to an existing user (#11300)

For detailed changes, see CHANGELOG

@better-auth/sso

Bug Fixes

  • Fixed SAML sign-in for providers that use samlConfig.callbackUrl as their ACS URL without spMetadata.metadata, which had failed with invalid_saml_response since 1.6.21 (#11730)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release:

@bytaesu, @gustavovalverde

Full changelog: v1.6.33...v1.6.34

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.8.0-beta.4

[!IMPORTANT] Action required

Custom Twitch and Paybin ID-token sign-ins using the default getUserInfo must include idToken.accessToken. Standard redirect-based sign-in requires no changes.

@better-auth/core

❗ Breaking Changes

  • Changed Paybin to use its published /oauth/* endpoints and return UserInfo data instead of stored ID-token claims, so profile mappings must handle omitted email and custom ID-token sign-ins using the default profile reader must supply accessToken (#11860)
  • Changed Spotify profile fields to match the current user profile, so mappings must handle nullable display names, omitted email, and nullable image dimensions, and a missing display name leaves the local name unset while raw profile fields remain available (#11865)
  • Changed Twitch to fetch current profile data with access tokens instead of using stored ID-token claims, so profile mappings must handle optional fields and custom ID-token sign-ins using the default profile reader must supply accessToken (#11848)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release:

@bytaesu …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.8.0-beta.3

[!IMPORTANT] Action required

OAuth profile types 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 official resources and updated to match. If you use custom profile mappings or profile types for any of them, review the changes below and handle fields that are now optional, nullable, or retyped.

better-auth

❗ Breaking Changes

  • Fixed the Gumroad OAuth helper to return undefined for accounts without a name, matching its declared profile type (#11864)
  • Fixed the Patreon OAuth helper to normalize null names and images to missing values while preserving empty strings, and to allow email to be null or omitted when email access is not granted (#11863)
  • Fixed Slack sign-in to support scoped profiles with optional SlackProfile email and profile claims, use POST for userinfo in the built-in provider and Generic OAuth helper, and reject Slack errors returned with HTTP 200 (#11851)

For detailed changes, see CHANGELOG

@better-auth/core

❗ Breaking Changes …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.14

better-auth

Bug Fixes

  • Fixed two-factor TOTP to accept imported Base32 secrets stored as base32:<secret> (#12031)

For detailed changes, see CHANGELOG

@better-auth/core

Bug Fixes

  • Fixed Kakao sign-in to forward loginHint so the Kakao Account login page opens with the ID field prefilled (#12045)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release:

@bytaesu, @honuuk

Full changelog: v1.7.13...v1.7.14

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.13

better-auth

Bug Fixes

  • Fixed type declarations so type-only exports are no longer listed as values, making a value import fail type checking instead of failing at runtime (#11985)

For detailed changes, see CHANGELOG

@better-auth/core

Features

  • Added token endpoint authentication options to the Vercel social provider, including dynamic OIDC tokens and private key JWT client assertions, without replacing the built-in sign-in flow (#11948)

Bug Fixes

  • Added tokenEndpointAuth: { method } to the Cloudflare provider and deprecated tokenEndpointAuthMethod, which remains supported (#11997)

For detailed changes, see CHANGELOG

@better-auth/stripe

Features

  • Added support for Stripe SDK v23 in the Stripe plugin (#11954)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release: …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.8.0-beta.2

[!IMPORTANT] Action required

  • If your Zoom profile mappings use exhaustive login-type checks, update them to handle the login types 11, 21, and 23. (#11850)
  • If you use Naver profile mappings, update them to handle omitted personal fields and supply an email when Naver does not share one. (#11858)
  • If you use Kakao profile mappings, update them to handle a missing kakao_account. (#11857)
  • If you use Roblox profile mappings, update them to handle optional scoped fields, a null picture, and unknown custom claims. (#11866)
  • If your Google profile mappings rely on ID token claims such as email verification, update them to handle claims that are now optional. (#11847)
  • If you use mapProfileToUser with Polar, update it to read the scoped, nullable userinfo claims instead of the previous user profile fields. (#11840)
  • If you use custom Kick profile mappings or getUserInfo callbacks, update them to treat KickProfile.user_id as a number instead of a string. (#11841) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.12

[!IMPORTANT] Action required

  • If you use ID token sign-in with a provider that has no clientId, set clientId to every client ID your apps sign in with. (#11931)

better-auth

Bug Fixes

  • Fixed the JWT plugin to verify JWTs and session cookie-cache JWTs with the stored key's algorithm instead of the token header's, and to warn when signing or verifying a JWT without an issuer or audience (#11925)
  • Fixed OAuth callbacks completed through the OAuth proxy to run the same checks as the standard OAuth callback, including issuer and ID token nonce validation (#11930)
  • Fixed auth.api.getSession() to keep the original database error as error.cause when the session lookup fails (#11924)

For detailed changes, see CHANGELOG

@better-auth/core

Bug Fixes

  • Fixed mapProfileToUser failing to typecheck under exactOptionalPropertyTypes when it returns undefined for name, email, or image (#11918) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.11

better-auth

Bug Fixes

  • Fixed repeated PostgreSQL migration diffs for int8 columns. (#10719)
  • Fixed database-backed rate limiting returning an excessively large X-Retry-After value. (#11521)

For detailed changes, see CHANGELOG

@better-auth/core

Bug Fixes

  • Fixed plugin init returns with options: undefined failing type checks under exactOptionalPropertyTypes. (#11907)
  • Fixed ID token signature and claim validation for Twitch and Paybin sign-in. Custom Paybin issuers must publish RS256 signing keys at <issuer>/.well-known/jwks.json. (#11884)
  • Reduced installation size while preserving OpenTelemetry instrumentation attributes. (#11623)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Bug Fixes

  • Fixed OpenAPI schemas for /oauth2/consent and /oauth2/continue to match their redirect responses. (#10881) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.8.0-beta.1

better-auth

Features

  • Added a browser account chooser for Google sign-in buttons using FedCM on supported Chrome browsers (#11343)

For detailed changes, see CHANGELOG

@better-auth/drizzle-adapter

Bug Fixes

  • fix(drizzle-adapter): preserve required fields in relations v2 schemas (#11836)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Features

  • Added support for assigning client_credentials scopes during protected OAuth client registration (#11832)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release:

@bytaesu, @gustavovalverde, @qamarq

Full changelog: v1.8.0-beta.0...v1.8.0-beta.1

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.9

better-auth

Bug Fixes

  • Fixed onAPIError.onError handlers to finish before responses are sent and log failures without interrupting requests (#11766)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Bug Fixes

  • Added isContinuation to postLogin.shouldRedirect so users can complete authorization after selecting an organization (#11185)
  • Fixed DPoP validation for token and UserInfo requests behind proxies that rewrite request URLs (#10799)

For detailed changes, see CHANGELOG

Contributors

Thanks to everyone who contributed to this release:

@bytaesu, @johanneskares

Full changelog: v1.7.8...v1.7.9

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.10

better-auth

Bug Fixes

  • Fixed Captcha and OpenAPI plugin subpath imports and type resolution for better-auth/plugins/multi-session and better-auth/test. (#11822)
  • Fixed Google One Tap sign-ins not recording google as the last login method. (#11393)
  • Fixed imports from better-auth/plugins/one-tap failing with a not-exported error. (#11696)
  • Fixed Google One Tap ignoring plugin-level autoSelect and cancelOnTapOutside settings. (#11820)
  • Fixed Google One Tap sign-ins ignoring configured Google profile mapping and user info updates. (#11819)
  • Fixed Google One Tap calling a prompt method unsupported by FedCM and retrying skipped prompts. (#11821)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Features

  • Added optional self-service signing key rotation for private_key_jwt clients. (#11695)

Bug Fixes …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.8.0-beta.0

better-auth

❗ Breaking Changes

  • Changed the custom DeviceAuthorizationGrant interface for device-code approval (#11610)

Migration: Rename assertSessionRedemption to assertStandaloneUse, handle its new use argument, and remove uses of getVerificationContext, verificationOpenAPIProperties, and the interface's second type parameter.

  • Fixed sign-up emails and OAuth session caching to run after database work completes (#11751)

Migration: Use a databaseHooks.user.create.before hook to reject sign-ups instead of throwing from sendVerificationEmail or onExistingUserSignUp, and account for logged cache-write failures no longer failing applicable sign-ins.

  • Fixed concurrent device-code decisions so only the first approval or denial takes effect (#11772)

Migration: Replace checks for device_code_already_processed in /device/approve error types with checks for invalid_request.

  • Fixed device-token polling to report expired_token immediately after a code expires (#11772)

Migration: Handle expired_token on the first poll after expiry rather than expecting an initial slow_down response. …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

v1.7.8

better-auth

Bug Fixes

  • Aligned cookie security attributes with RFC 6265bis (#11540)
  • Added SvelteKit 3 to the supported peer dependency range (#11488)
  • Fixed stale cookies persisting after customSession sessions expire or are revoked (#10591)
  • Fixed customSession treating session lookup errors as signed-out users (#11391)
  • Fixed sign-in failures, replay checks, and SIWE email handling with generateId: "uuid" (#11625)
  • Removed non-returned custom fields from inferred output schema types (#11565)
  • Fixed Kysely migration foreign keys when custom table names match another model key (#11505)
  • Reduced organization plugin server bundles by excluding unused Zod locales (#10866)
  • Aligned @better-auth/utils and better-call dependency versions across official packages (#11512) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

Better Auth 1.7.7: Kritische Magic-Link-Sicherheitslücke behoben

Better Auth v1.7.7 behebt eine kritische Magic-Link-Sicherheitslücke zur Kontoübernahme, die Ignorierung von disableSignUp bei ID-Token-Anmeldungen, die Annahme von Sign-in-State als Provider-Profil im OAuth Proxy sowie mehrere Fehler bei JSON-Content-Type-Headern und der Aktualisierung der aktiven Organisation; Server mit gemeinsamem Verification-Speicher müssen gemeinsam aktualisiert werden, neue Magic Links angefordert und ausstehende OAuth/SAML-Anmeldungen neu gestartet werden.

better-auth

Magic Link upgrade: Upgrade servers sharing verification storage together, request new Magic Links, and restart pending OAuth/SAML sign-ins. No database migration is required. See the critical advisory for affected configurations and custom storage changes.

Bug Fixes

  • Fixed a critical Magic Link account-takeover vulnerability. (#11494)
  • Fixed ID-token sign-in ignoring the social provider’s disableSignUp setting. (#11491)
  • Fixed OAuth Proxy accepting sign-in state as a provider profile. (#11494) Upgrade all OAuth Proxy participants together; see the OAuth Proxy upgrade guidance.
  • Fixed CAPTCHA errors missing the JSON Content-Type header. (#11476)
  • Fixed the active organization failing to refresh after sign-in when a session hook selects the initial organization. (#11375)
  • Fixed rate-limit errors missing the JSON Content-Type header. (#11469) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

Better Auth 1.7.6: bannedUserMessage, Vercel BotID und Fixes

Better Auth v1.7.6 ergänzt eine bannedUserMessage-Funktion und Vercel BotID als Captcha-Anbieter und behebt unter anderem zu lange Passwörter (jetzt PASSWORD_TOO_LONG), React-Hydration-Probleme, überlappende Auth-Query-Antworten, Cloudflare-D1-Schemavalidierung und Social-Account-Linking über den OAuth Proxy.

better-auth

Features

  • Added support for a bannedUserMessage function that receives the banned user, allowing sign-in errors to include details such as the ban reason. (#11325)
  • Added Vercel BotID as a captcha provider for protected authentication routes. (#11016)

Bug Fixes

  • Passwords over maxPasswordLength are now rejected with PASSWORD_TOO_LONG before hashing or verification. (#11324)
  • Fixed React hydration mismatches when session or plugin auth queries resolve before streamed components hydrate. (#11316)
  • Prevented older auth-query responses from overwriting newer results when requests overlap. (#11376)
  • Fixed model identity when a custom model name matches another schema key. (#11333)
  • Fixed schema validation for Cloudflare D1 when the Kysely dialect cannot introspect the database. (#11366)
  • Fixed social account linking through the OAuth Proxy plugin. (#11268) …

Originalquelle(öffnet in neuem Tab)Problem melden

Betterauth von Better Auth

Better Auth 1.7.5: database.schemaName für PostgreSQL

Better Auth v1.7.5 unterstützt database.schemaName für direkte PostgreSQL-Verbindungen, verbessert das Logging bei Cloudflare-Turnstile-Fehlern und behebt PostgreSQL-Migrationen über mehrere Schemas, die MySQL-Indexvalidierung sowie die Typableitung der Datenbankoptionen und entfernt die ungenutzte optionale Peer-Dependency better-sqlite3.

better-auth

Features

  • Added database.schemaName support for direct PostgreSQL connections. (#11203)

Bug Fixes

  • Improved server-side logging for Cloudflare Turnstile verification failures. (#11283)
  • Fixed PostgreSQL migrations incorrectly identifying tables and views across schemas. (#11270)
  • Fixed MySQL index validation for existing string columns. (#11272)
  • Removed the unused optional better-sqlite3 peer dependency to prevent installation conflicts. (#11209)

For detailed changes, see CHANGELOG

@better-auth/core

Features

  • Added database.schemaName support for direct PostgreSQL connections. (#11203)

Bug Fixes

  • Fixed database option type inference outside Cloudflare Workers. (#11290)

For detailed changes, see CHANGELOG

@better-auth/cimd

Bug Fixes …

Originalquelle(öffnet in neuem Tab)Problem melden