[PR #6937] feat(stripe): add disableRedirect option for subscription and billing #23878

Open
opened 2026-04-15 22:02:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6937
Author: @letstri
Created: 12/22/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (10+)

  • fcab5a8 fix: add helper types to exports (#6479)
  • 1496999 Revert "ci: remove NODE_AUTH_TOKEN during publish (#6475)"
  • 2000fd6 chore: release v1.4.5
  • f27a868 refactor: move adapter-factory to core (#6477)
  • bd98735 fix: avoid throwing on client side (#6361)
  • ed825d2 docs: correct spelling of 'Tiktok' to 'TikTok' (#6485)
  • 89030aa fix(db): correctly unwrap validator result in schema parsing (#6488)
  • afd6398 docs: add middleware section for TanStack Start (#6495)
  • 630c510 fix: export organization plugin types (#6490)
  • aeb0b28 fix(deps): update dependency next to v16.0.7 [security] (#6501)

📊 Changes

5 files changed (+221 additions, -10 deletions)

View changed files

📝 docs/content/docs/plugins/dodopayments.mdx (+108 -2)
📝 docs/content/docs/plugins/multi-session.mdx (+59 -1)
📝 docs/content/docs/plugins/sso.mdx (+7 -0)
📝 packages/better-auth/src/plugins/multi-session/client.ts (+22 -2)
📝 packages/stripe/src/routes.ts (+25 -5)

📄 Description

Missed disabledRedirect options in the stripe integration


Summary by cubic

Added a disableRedirect option to Stripe subscription upgrade/cancel and billing portal endpoints so apps can control navigation. Also adds a schema option to the multi-session client for inferring additional fields.

  • New Features
    • Stripe: disableRedirect (default false) for cancelSubscription and createBillingPortal; upgradeSubscription now respects it; responses return { url, redirect: !disableRedirect }.
    • Multi-session: client accepts schema.additionalFields for user/session to improve type inference.

Written for commit 70fa65c623. 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/6937 **Author:** [@letstri](https://github.com/letstri) **Created:** 12/22/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (10+) - [`fcab5a8`](https://github.com/better-auth/better-auth/commit/fcab5a84cd8fd5b8b239a21c929e0e24d1f9c035) fix: add helper types to exports (#6479) - [`1496999`](https://github.com/better-auth/better-auth/commit/14969994c440090aef58e636cf3e3f36e6565ffe) Revert "ci: remove `NODE_AUTH_TOKEN` during publish (#6475)" - [`2000fd6`](https://github.com/better-auth/better-auth/commit/2000fd63d072e51f653aec356afd3308bba7946b) chore: release v1.4.5 - [`f27a868`](https://github.com/better-auth/better-auth/commit/f27a8680ec8b277ad9cc455e460e843c6e30fd73) refactor: move adapter-factory to core (#6477) - [`bd98735`](https://github.com/better-auth/better-auth/commit/bd98735f2a0e63a954f71055e3125cda70cc5b05) fix: avoid throwing on client side (#6361) - [`ed825d2`](https://github.com/better-auth/better-auth/commit/ed825d273b7ed90ddb187320e93ce214370d21a8) docs: correct spelling of 'Tiktok' to 'TikTok' (#6485) - [`89030aa`](https://github.com/better-auth/better-auth/commit/89030aab5038e36394fc4e91b487b2dc55acf4a4) fix(db): correctly unwrap validator result in schema parsing (#6488) - [`afd6398`](https://github.com/better-auth/better-auth/commit/afd63982fefac566b4cee23b3c00388419a7fdc4) docs: add middleware section for TanStack Start (#6495) - [`630c510`](https://github.com/better-auth/better-auth/commit/630c5108cb45ae4d450a35af8fe83d98f7c9d137) fix: export organization plugin types (#6490) - [`aeb0b28`](https://github.com/better-auth/better-auth/commit/aeb0b28827cc66e161e681f94a65fe1e77a2d713) fix(deps): update dependency next to v16.0.7 [security] (#6501) ### 📊 Changes **5 files changed** (+221 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/dodopayments.mdx` (+108 -2) 📝 `docs/content/docs/plugins/multi-session.mdx` (+59 -1) 📝 `docs/content/docs/plugins/sso.mdx` (+7 -0) 📝 `packages/better-auth/src/plugins/multi-session/client.ts` (+22 -2) 📝 `packages/stripe/src/routes.ts` (+25 -5) </details> ### 📄 Description Missed disabledRedirect options in the stripe integration <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a disableRedirect option to Stripe subscription upgrade/cancel and billing portal endpoints so apps can control navigation. Also adds a schema option to the multi-session client for inferring additional fields. - **New Features** - Stripe: disableRedirect (default false) for cancelSubscription and createBillingPortal; upgradeSubscription now respects it; responses return { url, redirect: !disableRedirect }. - Multi-session: client accepts schema.additionalFields for user/session to improve type inference. <sup>Written for commit 70fa65c62385d703c25be047bbd0b8bdb884fdcc. 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-15 22:02:15 -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#23878