You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixed Apple OAuth not sending the PKCE code challenge during authorization, causing token exchange failures (#10294)
Fixed Google One Tap creating new users when sign-up was disabled on the Google provider (#10479)
Fixed $fetch and $store not being exposed on the Solid client (#10444)
Fixed internal adapter queries being routed to the wrong table when a built-in table's modelName was set to another table's schema key (e.g. user.modelName = "account").
Added request context (ctx) as a third argument to verifyIdToken, enabling custom ID token verifiers to read request headers (#10376)
Added beforeStoreCookie option to the last-login-method plugin for GDPR compliance (#5753)
Bug Fixes
Replaced flaky MongoDB where-coercion integration test with a direct unit test for more reliable test runs (#10369)
Fixed the get-session endpoint to include no-store cache control headers, preventing stale session data from being served (#10222)
Fixed SQLite migration diffs to recognize BIGINT as a valid number type, preventing spurious pending changes on rate limiter columns (#10316)
Fixed auth requests failing when request cloning throws an error inside verification callbacks (#10336)
Fixed useSession({ throw: true }) incorrectly excluding null from its data type (#9787)
Fixed auth query revalidation and signal listeners not being restored after a client component remounts (#10379)
Fixed the CookieAttributes index signature type to be more precise (#10442)
Fixed silent misrouting of adapter queries when user.modelName was set to a value that collides with another schema key (#10235)
Fixed Kysely migration generation producing duplicate indexes for fields marked both unique and index (#10357)
Fixed magic-link and email-OTP send endpoints to validate the Origin header on cookieless requests, preventing cross-origin abuse (#10368)
Fixed remote MCP auth 401 challenge headers being hidden from browser clients due to missing CORS exposure (#10290)
Fixed OpenAPI schema to include plugin user fields (such as username and displayUsername) in /sign-up/email and /update-user request bodies (#10453)
Fixed organization.listMembers failing with "User not found for member" for organizations with more than ~100 members (#10342)
Fixed organization invitations to use database-generated IDs when advanced.database.generateId is configured, matching the behavior of other models (#10040)
Fixed getDefaultModelName to prefer exact schema key matches over modelName aliases, preventing adapter queries from being misrouted when a built-in table's name collides with another schema key
#104795124c34 Thanks @krish-vachhani! - Prevent Google One Tap from creating new users when sign-up is disabled for the Google provider.
#104447439359 Thanks @birkskyum! - Expose the real $fetch instance and $store atoms from the Solid client instead of resolving them as dynamic API routes.
#1023503dc5a0 Thanks @ping-maxwell! - Fixes silent foreign-key and adapter-join misrouting when a user remaps a built-in model name to a string that collides with another schema key
#103577508940 Thanks @c-nicol! - Fixes Kysely migration generation for new-table fields that are both unique: true and index: true.
#10342bae7198 Thanks @ping-maxwell! - Fix organization.listMembers failing with "User not found for member" for orgs with more than ~100 members by applying the same membership limit to the users query.
#1033399dbdd7 Thanks @c-nicol! - Fixes Drizzle schema generation for fields that are both unique: true and index: true.
#10368086ca91 Thanks @gaurav0107! - Force-validate the request Origin on the magic-link (/sign-in/magic-link) and email-otp (/email-otp/send-verification-otp) send endpoints, including cookieless requests, to match the built-in /sign-in/email and /sign-up/email routes. A cookieless cross-origin POST can no longer trigger a magic-link or verification-OTP email to an arbitrary address. Cookieless requests that carry no Origin (server-to-server) are unaffected.
#102908f2dedd Thanks @GautamBytes! - Expose the remote MCP auth client's 401 challenge headers to browser clients using CORS.
#104534e685ee Thanks @ping-maxwell! - OpenAPI now includes user.additionalFields and plugin user schema fields (e.g. username plugin username / displayUsername) on /sign-up/email and /update-user request bodies.
#101903bf0e49 Thanks @gaurav-init! - Pass the endpoint context as the second argument to beforeDeleteOrganization and afterDeleteOrganization hooks in the organization plugin, matching the signature shown in the docs and the existing databaseHooks pattern. The Stripe plugin's beforeDeleteOrganization wrapper now forwards the context to user-supplied hooks instead of dropping it.
#10040f59a0ee Thanks @shiminshen! - Organization invitations now let the database generate their id when ID generation is delegated to the database (e.g. advanced.database.generateId: "uuid" with a UUID-capable adapter such as Postgres), matching every other model. Previously createInvitation always generated the invitation id in application code, so invitation rows received an app-generated value instead of a database-generated one while organizations, members and teams correctly deferred to the database (better-auth/better-auth#10024). A caller-provided id (e.g. via beforeCreateInvitation) is still honored.
#103020f2cc1b Thanks @momomuchu! - Prefer exact schema-key matches over modelName aliases in getDefaultModelName, so remapping a built-in table onto another table's schema key (e.g. user.modelName = "account") does not reroute internal adapter queries to the wrong table.
#9787ae78109 Thanks @ping-maxwell! - Fixes an issue where useSession({ throw: true }) incorrectly excluded null from its data type.
#1031629a373e Thanks @vinay-oppuri! - Recognize SQLite BIGINT as a valid number type in migration diffs so database-backed rate limiter columns like lastRequest no longer report spurious pending changes on every run.
#10379f6d18fa Thanks @ping-maxwell! - fix(client): restore auth query revalidation and signal listeners after remount
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request @dependabot recreate.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependenciesPull requests that update a dependency filejavascriptPull requests that update javascript code
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps better-auth from 1.5.5 to 1.6.25.
Release notes
Sourced from better-auth's releases.
... (truncated)
Changelog
Sourced from better-auth's changelog.
... (truncated)
Commits
07a646echore: release v1.6.25 (#10491)7439359fix(solid): expose $fetch and $store on the solid client (#10444)dac701cchore(deps): bump next from 16.2.6 to 16.2.11 (#10493)5124c34fix(one-tap): enforce google provider signup restrictions (#10479)9a661c7chore: release v1.6.24 (#10323)4e685eefix(open-api): include plugin user fields on sign-up/update bodies (#10453)d3ce782fix(cookies): tighten CookieAttributes index signature type (#10441) (#10442)ae78109fix(client): preserve null in useSession().data type with throw:true (#9787)f6d18fafix(client): restore auth query lifecycle after remount (#10379)086ca91fix(magic-link, email-otp): force-validate Origin on cookieless send endpoint...Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for better-auth since your current version.