[PR #7510] [MERGED] v1.4.17 #32966

Closed
opened 2026-04-17 23:39:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7510
Author: @himself65
Created: 1/21/2026
Status: Merged
Merged: 1/21/2026
Merged by: @himself65

Base: mainHead: v1.4.x-staging


📝 Commits (7)

  • 5f0bc5d fix: set default ipv6 subnet to 64 (#7509)
  • f9ee3f8 chore(sso): remove unused ascEndpoint params schema (#7488)
  • d28e404 fix(cookies): fallback to isProduction when baseURL is not set (#7159)
  • 955de56 fix(db): only exclude returned: false fields from output schemas (#7504)
  • 1c954b1 chore: cleanup pnpm settings (#7498)
  • 382486f docs: add a callout about the Kakao Biz App requirement for the account_email scope (#7486)
  • 7403c25 fix(stripe): allow re-subscribing to the same plan when subscription has expired (#7459)

📊 Changes

14 files changed (+187 additions, -38 deletions)

View changed files

.npmrc (+0 -1)
📝 docs/content/docs/authentication/kakao.mdx (+5 -1)
📝 packages/better-auth/src/api/rate-limiter/rate-limiter.test.ts (+3 -3)
📝 packages/better-auth/src/cookies/cookies.test.ts (+38 -1)
📝 packages/better-auth/src/cookies/index.ts (+1 -1)
packages/better-auth/src/db/to-zod.test.ts (+32 -0)
📝 packages/better-auth/src/db/to-zod.ts (+1 -1)
📝 packages/core/src/types/init-options.ts (+1 -1)
📝 packages/core/src/utils/ip.test.ts (+31 -19)
📝 packages/core/src/utils/ip.ts (+2 -2)
📝 packages/sso/src/routes/sso.ts (+1 -6)
📝 packages/stripe/src/routes.ts (+4 -1)
📝 packages/stripe/test/stripe.test.ts (+66 -0)
📝 pnpm-workspace.yaml (+2 -1)

📄 Description

Summary by cubic

Strengthened security defaults and improved IP handling. Secure cookies default to Secure in production when baseURL is unset, IPv6 normalization uses /64 by default, toZod only excludes returned:false fields on server output, and Stripe subscriptions can re-subscribe after expiry.

  • Bug Fixes

    • Cookies: Use secure cookies in production when baseURL isn’t set; added tests.
    • DB: toZod includes returned:false fields for client input; excludes them for server output.
    • IP: Default IPv6 subnet for normalization is now /64.
    • SSO: Removed ACS params schema and stopped defaulting providerId.
    • Stripe: Allow re-subscribing to the same plan when the previous subscription has expired; added tests.
  • Refactors

    • Docs: Added Kakao Biz App note for the account_email scope.
    • Build: Moved workspace linking to pnpm-workspace.yaml and allowed all builds; removed .npmrc.

Written for commit 7403c258ba. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7510 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/21/2026 **Status:** ✅ Merged **Merged:** 1/21/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `v1.4.x-staging` --- ### 📝 Commits (7) - [`5f0bc5d`](https://github.com/better-auth/better-auth/commit/5f0bc5dfb3f044b6845bf9b1a2b456a0d2e21c06) fix: set default ipv6 subnet to 64 (#7509) - [`f9ee3f8`](https://github.com/better-auth/better-auth/commit/f9ee3f8a61ab5f4a191cc00d39da670030e9e11e) chore(sso): remove unused ascEndpoint params schema (#7488) - [`d28e404`](https://github.com/better-auth/better-auth/commit/d28e4045f97f6e27527a701f810b1d27a141dac9) fix(cookies): fallback to isProduction when `baseURL` is not set (#7159) - [`955de56`](https://github.com/better-auth/better-auth/commit/955de56d3d233598faae2b44431b29a587040321) fix(db): only exclude `returned: false` fields from output schemas (#7504) - [`1c954b1`](https://github.com/better-auth/better-auth/commit/1c954b156d754460dd018c55d5bad51aefdad248) chore: cleanup pnpm settings (#7498) - [`382486f`](https://github.com/better-auth/better-auth/commit/382486fd8be2ef207a15f1444536fbd0fd8ae99e) docs: add a callout about the Kakao Biz App requirement for the `account_email` scope (#7486) - [`7403c25`](https://github.com/better-auth/better-auth/commit/7403c258babdda63e67a5a181b2144fc364e25ea) fix(stripe): allow re-subscribing to the same plan when subscription has expired (#7459) ### 📊 Changes **14 files changed** (+187 additions, -38 deletions) <details> <summary>View changed files</summary> ➖ `.npmrc` (+0 -1) 📝 `docs/content/docs/authentication/kakao.mdx` (+5 -1) 📝 `packages/better-auth/src/api/rate-limiter/rate-limiter.test.ts` (+3 -3) 📝 `packages/better-auth/src/cookies/cookies.test.ts` (+38 -1) 📝 `packages/better-auth/src/cookies/index.ts` (+1 -1) ➕ `packages/better-auth/src/db/to-zod.test.ts` (+32 -0) 📝 `packages/better-auth/src/db/to-zod.ts` (+1 -1) 📝 `packages/core/src/types/init-options.ts` (+1 -1) 📝 `packages/core/src/utils/ip.test.ts` (+31 -19) 📝 `packages/core/src/utils/ip.ts` (+2 -2) 📝 `packages/sso/src/routes/sso.ts` (+1 -6) 📝 `packages/stripe/src/routes.ts` (+4 -1) 📝 `packages/stripe/test/stripe.test.ts` (+66 -0) 📝 `pnpm-workspace.yaml` (+2 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Strengthened security defaults and improved IP handling. Secure cookies default to Secure in production when baseURL is unset, IPv6 normalization uses /64 by default, toZod only excludes returned:false fields on server output, and Stripe subscriptions can re-subscribe after expiry. - **Bug Fixes** - Cookies: Use secure cookies in production when baseURL isn’t set; added tests. - DB: toZod includes returned:false fields for client input; excludes them for server output. - IP: Default IPv6 subnet for normalization is now /64. - SSO: Removed ACS params schema and stopped defaulting providerId. - Stripe: Allow re-subscribing to the same plan when the previous subscription has expired; added tests. - **Refactors** - Docs: Added Kakao Biz App note for the account_email scope. - Build: Moved workspace linking to pnpm-workspace.yaml and allowed all builds; removed .npmrc. <sup>Written for commit 7403c258babdda63e67a5a181b2144fc364e25ea. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-17 23:39:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#32966