chore(deps): update better-auth monorepo to v1.7.0-rc.4 - #365
Open
renovate[bot] wants to merge 1 commit into
Open
chore(deps): update better-auth monorepo to v1.7.0-rc.4#365renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR contains the following updates:
1.7.0-rc.1→1.7.0-rc.41.7.0-rc.1→1.7.0-rc.4Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
better-auth/better-auth (@better-auth/test-utils)
v1.7.0-rc.4Compare Source
better-authFeatures
Bug Fixes
findSessionsto skip null-parsed session tokens instead of returning early (#10580)jwtClient(#10513)oneTapClient(#10635)$fetchand$storenot being exposed on the Solid client (#10444)next/headersimport promise in production (#10467)For detailed changes, see
CHANGELOG@better-auth/expo❗ Breaking Changes
For detailed changes, see
CHANGELOG@better-auth/redis-storageBug Fixes
SCANinstead ofKEYSto avoid blocking the server (#10507)For detailed changes, see
CHANGELOG@better-auth/scimBug Fixes
noTargeterror (#10682)For detailed changes, see
CHANGELOGauthBug Fixes
For detailed changes, see
CHANGELOGContributors
Thanks to everyone who contributed to this release:
@birkskyum, @bytaesu, @Emmaccen, @gustavovalverde, @jashkarangiya, @jeroenvandermerwe, @jlucaso1, @jsj, @krish-vachhani, @mrosberghaus, @XXMOHAMED012
Full changelog:
v1.7.0-rc.3...v1.7.0-rc.4v1.7.0-rc.3Compare Source
better-auth❗ Breaking Changes
microsoftEntraIdaccounts to use the stableoidclaim as the account identifier instead ofsub(#10204)Features
Bug Fixes
createAuthClient(#10505)For detailed changes, see
CHANGELOG@better-auth/core❗ Breaking Changes
microsoftEntraIdaccounts to use the stableoidclaim as the account identifier instead ofsub(#10204)Features
Bug Fixes
createAuthClient(#10505)For detailed changes, see
CHANGELOG@better-auth/oauth-provider❗ Breaking Changes
type/publicclient fields withapplicationTypeand enforcing stricter redirect validation and scope controls (#10577)Features
Bug Fixes
403with an RFC 6750insufficient_scopeWWW-Authenticatechallenge listing all missing scopes, allowing clients to request them in a single authorization request.For detailed changes, see
CHANGELOG@better-auth/cimd❗ Breaking Changes
type/publicclient fields withapplicationTypeand enforcing stricter redirect validation and scope controls (#10577)Bug Fixes
s-maxage, honoring conditional revalidation, and treating ambiguous or duplicate freshness directives as immediately stale to prevent unique-constraint failures on concurrent refreshes.For detailed changes, see
CHANGELOG@better-auth/mcp❗ Breaking Changes
type/publicclient fields withapplicationTypeand enforcing stricter redirect validation and scope controls (#10577)For detailed changes, see
CHANGELOG@better-auth/scimFeatures
auth.apimethods (#10592)Bug Fixes
activefield andprimarysub-attributes ofemails,phoneNumbers,addresses,roles, andentitlementsat the HTTP ingress.managedConnectionsconfiguration to allow trusted server code to create, issue, rotate, and revoke SCIM tenant connections and bearer credentials through server-onlyauth.apimethods without a code-defined connection.For detailed changes, see
CHANGELOG@better-auth/ssoFeatures
resolveUserto SAML sign-ins with a discriminatedprotocolfield, and addedguardProviderMutationto authorize SSO provider updates and deletions (#10621)Bug Fixes
wantAssertionsSignedto control assertion signing instead of response signing.For detailed changes, see
CHANGELOG@better-auth/electronBug Fixes
createAuthClient(#10505)For detailed changes, see
CHANGELOG@better-auth/expoBug Fixes
createAuthClient(#10505)For detailed changes, see
CHANGELOG@better-auth/kysely-adapterBug Fixes
node:sqlite,bun:sqlite,mysql2,pg) passed directly asdatabaseto automatically receive native adapter transactions, matching the explicit{ db }/{ dialect }config shapes and unblocking plugins like@better-auth/scimwhen using the quickstart configuration.For detailed changes, see
CHANGELOG@better-auth/passkeyFeatures
createSessionsetting to passkey registration that signs the user in automatically on successful registration (#9873)For detailed changes, see
CHANGELOGContributors
Thanks to everyone who contributed to this release:
@brentmitchell25, @GautamBytes, @gustavovalverde
Full changelog:
v1.7.0-rc.2...v1.7.0-rc.3v1.7.0-rc.2Compare Source
better-auth❗ Breaking Changes
chore!: move joins to advanced.database.joins (#10359)
If you previously set
experimental: { joins: true }, update your config to:Adapters that support native joins use them when enabled. If an adapter cannot return joined data for a query, Better Auth falls back to additional queries and combines the results. Drizzle and Prisma users should ensure their schema includes the required relations (
npx auth@latest generate).feat(auth)!: scope accounts by issuer (#10403)
This release is breaking.
Account.accountIdis renamed toAccount.providerAccountId, andAccount.issueris required. Account-specific APIs select the localAccount.idthroughaccountId; token and provider-profile APIs can instead select the signed account cookie withuseAccountCookie: true. Credential accounts uselocal:credentialand the linked user's stableidas their provider identity.OAuth provider identity now comes from raw verified profiles. OpenID Connect discovery uses
sub, plain OAuth usesid, and providers can declareaccountSubjectfor another immutable field; Better Auth no longer switches betweensubandidat runtime.getUserInfo().userno longer carries provider identity, andmapProfileToUsercannot returnid. Read the selected identity fromaccountInfo.account.providerAccountIdinstead ofaccountInfo.user.id. The genericmicrosoftEntraIdhelper now requires a concrete tenant GUID; use the built-in Microsoft provider for multi-tenant authorities.SSO account subjects are now protocol-defined. OIDC uses the verified
subclaim, and SAML uses the signedNameID;mapping.idis removed from both configurations. A manual SAML configuration without metadata XML must setidpMetadata.entityID, becausesamlConfig.issueridentifies the service provider and no longer acts as the IdP identity.Apply the reviewed account-identity backfill in the Better Auth 1.7 upgrade guide before deploying. The generated schema migration cannot assign trusted issuers or resolve existing identity collisions automatically.
feat(scim)!: decouple provisioning from the organization plugin (#10390)
This replaces the previous SCIM configuration, client APIs, database schema, and organization-backed Group model. Existing SCIM installations cannot migrate provisioning state in place. Follow the SCIM cutover in the 1.7 upgrade guide, including full directory reprovisioning, before resuming traffic.
Deferred database side effects now run only after a successful transaction. A rolled-back User update no longer refreshes its cached profile, and a rolled-back bulk session revocation no longer invalidates sessions.
Features
ctxtoverifyIdToken(#10376)beforeStoreCookieoption for GDPR compliance (#5753)Bug Fixes
no-cachecache control headers (#10222)For detailed changes, see
CHANGELOG@better-auth/core❗ Breaking Changes
chore!: move joins to advanced.database.joins (#10359)
If you previously set
experimental: { joins: true }, update your config to:Adapters that support native joins use them when enabled. If an adapter cannot return joined data for a query, Better Auth falls back to additional queries and combines the results. Drizzle and Prisma users should ensure their schema includes the required relations (
npx auth@latest generate).feat(auth)!: scope accounts by issuer (#10403)
This release is breaking.
Account.accountIdis renamed toAccount.providerAccountId, andAccount.issueris required. Account-specific APIs select the localAccount.idthroughaccountId; token and provider-profile APIs can instead select the signed account cookie withuseAccountCookie: true. Credential accounts uselocal:credentialand the linked user's stableidas their provider identity.OAuth provider identity now comes from raw verified profiles. OpenID Connect discovery uses
sub, plain OAuth usesid, and providers can declareaccountSubjectfor another immutable field; Better Auth no longer switches betweensubandidat runtime.getUserInfo().userno longer carries provider identity, andmapProfileToUsercannot returnid. Read the selected identity fromaccountInfo.account.providerAccountIdinstead ofaccountInfo.user.id. The genericmicrosoftEntraIdhelper now requires a concrete tenant GUID; use the built-in Microsoft provider for multi-tenant authorities.SSO account subjects are now protocol-defined. OIDC uses the verified
subclaim, and SAML uses the signedNameID;mapping.idis removed from both configurations. A manual SAML configuration without metadata XML must setidpMetadata.entityID, becausesamlConfig.issueridentifies the service provider and no longer acts as the IdP identity.Apply the reviewed account-identity backfill in the Better Auth 1.7 upgrade guide before deploying. The generated schema migration cannot assign trusted issuers or resolve existing identity collisions automatically.
feat(scim)!: decouple provisioning from the organization plugin (#10390)
This replaces the previous SCIM configuration, client APIs, database schema, and organization-backed Group model. Existing SCIM installations cannot migrate provisioning state in place. Follow the SCIM cutover in the 1.7 upgrade guide, including full directory reprovisioning, before resuming traffic.
Deferred database side effects now run only after a successful transaction. A rolled-back User update no longer refreshes its cached profile, and a rolled-back bulk session revocation no longer invalidates sessions.
Features
For detailed changes, see
CHANGELOG@better-auth/drizzle-adapter❗ Breaking Changes
chore!: move joins to advanced.database.joins (#10359)
If you previously set
experimental: { joins: true }, update your config to:Adapters that support native joins use them when enabled. If an adapter cannot return joined data for a query, Better Auth falls back to additional queries and combines the results. Drizzle and Prisma users should ensure their schema includes the required relations (
npx auth@latest generate).Features
For detailed changes, see
CHANGELOG@better-auth/sso❗ Breaking Changes
feat(auth)!: scope accounts by issuer (#10403)
This release is breaking.
Account.accountIdis renamed toAccount.providerAccountId, andAccount.issueris required. Account-specific APIs select the localAccount.idthroughaccountId; token and provider-profile APIs can instead select the signed account cookie withuseAccountCookie: true. Credential accounts uselocal:credentialand the linked user's stableidas their provider identity.OAuth provider identity now comes from raw verified profiles. OpenID Connect discovery uses
sub, plain OAuth usesid, and providers can declareaccountSubjectfor another immutable field; Better Auth no longer switches betweensubandidat runtime.getUserInfo().userno longer carries provider identity, andmapProfileToUsercannot returnid. Read the selected identity fromaccountInfo.account.providerAccountIdinstead ofaccountInfo.user.id. The genericmicrosoftEntraIdhelper now requires a concrete tenant GUID; use the built-in Microsoft provider for multi-tenant authorities.SSO account subjects are now protocol-defined. OIDC uses the verified
subclaim, and SAML uses the signedNameID;mapping.idis removed from both configurations. A manual SAML configuration without metadata XML must setidpMetadata.entityID, becausesamlConfig.issueridentifies the service provider and no longer acts as the IdP identity.Apply the reviewed account-identity backfill in the Better Auth 1.7 upgrade guide before deploying. The generated schema migration cannot assign trusted issuers or resolve existing identity collisions automatically.
Features
Bug Fixes
For detailed changes, see
CHANGELOG@better-auth/scim❗ Breaking Changes
feat(scim)!: decouple provisioning from the organization plugin (#10390)
This replaces the previous SCIM configuration, client APIs, database schema, and organization-backed Group model. Existing SCIM installations cannot migrate provisioning state in place. Follow the SCIM cutover in the 1.7 upgrade guide, including full directory reprovisioning, before resuming traffic.
Deferred database side effects now run only after a successful transaction. A rolled-back User update no longer refreshes its cached profile, and a rolled-back bulk session revocation no longer invalidates sessions.
Features
For detailed changes, see
CHANGELOGauthFeatures
Bug Fixes
For detailed changes, see
CHANGELOG@better-auth/electronBug Fixes
For detailed changes, see
CHANGELOG@better-auth/kysely-adapterBug Fixes
For detailed changes, see
CHANGELOG@better-auth/mongo-adapterFeatures
For detailed changes, see
CHANGELOG@better-auth/oauth-providerBug Fixes
For detailed changes, see
CHANGELOG@better-auth/stripeBug Fixes
For detailed changes, see
CHANGELOGContributors
Thanks to everyone who contributed to this release:
@akshatmalik-bruh, @ayushman46, @c-nicol, @gaurav-init, @gaurav0107, @GautamBytes, @gustavovalverde, @momomuchu, @OrangeManLi, @paoloricciuti, @ping-maxwell, @shiminshen, @swithek, @Tushar-Khandelwal-2004, @vinay-oppuri
Full changelog:
v1.7.0-rc.1...v1.7.0-rc.2Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.