[PR #5364] [MERGED] Move authorizeReference into subscription options in Stripe docs (merges into #5354) #22861

Closed
opened 2026-04-15 21:20:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5364
Author: @cubic-dev-ai[bot]
Created: 10/16/2025
Status: Merged
Merged: 10/16/2025
Merged by: @Bekacru

Base: fix/stripe-referenceHead: cubic-fix-docs-content-docs-plugins-stripe-mdx-L335-1760645878


📝 Commits (1)

  • fe65557 Move authorizeReference into subscription options in Stripe docs (merges into #5354)

📊 Changes

1 file changed (+26 additions, -20 deletions)

View changed files

📝 docs/content/docs/plugins/stripe.mdx (+26 -20)

📄 Description

🤖 PR by cubic

This PR addresses the comment in #5354 – fix(stripe): check for reference IDs inside during Stripe reference validation

File: docs/content/docs/plugins/stripe.mdx
Line: 335
Comment:

This example registers authorizeReference on the top-level stripe() options, but the plugin only reads subscription.authorizeReference. Copying this snippet would leave reference checks disabled because the handler is ignored.

This fix was automatically generated. Please review the changes carefully before merging.


Summary by cubic

Updated Stripe plugin docs to place authorizeReference inside subscription options. This makes the examples match the plugin API so reference checks run.

  • Bug Fixes
    • Moved authorizeReference into subscription in both auth.ts examples.
    • Prevents users from copying an ignored top-level handler that disables reference validation.

🔄 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/5364 **Author:** [@cubic-dev-ai[bot]](https://github.com/apps/cubic-dev-ai) **Created:** 10/16/2025 **Status:** ✅ Merged **Merged:** 10/16/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `fix/stripe-reference` ← **Head:** `cubic-fix-docs-content-docs-plugins-stripe-mdx-L335-1760645878` --- ### 📝 Commits (1) - [`fe65557`](https://github.com/better-auth/better-auth/commit/fe655574baffa4e3b4ef753799c3ca4621dad70e) Move authorizeReference into subscription options in Stripe docs (merges into #5354) ### 📊 Changes **1 file changed** (+26 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/stripe.mdx` (+26 -20) </details> ### 📄 Description 🤖 PR by [cubic](https://cubic.dev) This PR addresses the comment in [#5354 – fix(stripe): check for reference IDs inside during Stripe reference validation](https://github.com/better-auth/better-auth/pull/5354) **File:** `docs/content/docs/plugins/stripe.mdx` **Line:** 335 **Comment:** > This example registers authorizeReference on the top-level stripe() options, but the plugin only reads subscription.authorizeReference. Copying this snippet would leave reference checks disabled because the handler is ignored. *This fix was automatically generated. Please review the changes carefully before merging.* <!-- Metadata --> <!-- owner: better-auth --> <!-- repo: better-auth --> <!-- pull_number: 5354 --> <!-- End of metadata --> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated Stripe plugin docs to place authorizeReference inside subscription options. This makes the examples match the plugin API so reference checks run. - **Bug Fixes** - Moved authorizeReference into subscription in both auth.ts examples. - Prevents users from copying an ignored top-level handler that disables reference validation. <!-- 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 21:20:03 -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#22861