[PR #5206] [CLOSED] docs(stripe): add warning about signature verification for webhooks #22751

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5206
Author: @ouariachi
Created: 10/10/2025
Status: Closed

Base: canaryHead: docs/stripe-webhook-warning


📝 Commits (1)

  • aef7204 docs(stripe): add warning about signature verification for webhooks

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 docs/content/docs/plugins/stripe.mdx (+4 -2)

📄 Description

This PR adds a warning callout in the Stripe plugin documentation to clarify a common cause of webhook signature verification errors.

The note explains that parsing or modifying the request body (e.g., with express.json()) before passing it to Better Auth breaks Stripe’s signature validation. It instructs developers to use the raw request body when handling webhooks.

image

Summary by cubic

Add a warning callout to the Stripe plugin docs about webhook signature verification. It explains that parsing the request body (e.g., express.json()) before Better Auth breaks Stripe’s check and tells you to use the raw body.

Also removes a redundant line in the local development section.


🔄 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/5206 **Author:** [@ouariachi](https://github.com/ouariachi) **Created:** 10/10/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `docs/stripe-webhook-warning` --- ### 📝 Commits (1) - [`aef7204`](https://github.com/better-auth/better-auth/commit/aef72041304b49ca6cf4808226d5c0fe842ca51f) docs(stripe): add warning about signature verification for webhooks ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/stripe.mdx` (+4 -2) </details> ### 📄 Description This PR adds a warning callout in the Stripe plugin documentation to clarify a common cause of webhook signature verification errors. The note explains that parsing or modifying the request body (e.g., with express.json()) before passing it to Better Auth breaks Stripe’s signature validation. It instructs developers to use the raw request body when handling webhooks. <img width="999" height="483" alt="image" src="https://github.com/user-attachments/assets/d4535da8-2d27-4166-9847-e0f2b3c22320" /> <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add a warning callout to the Stripe plugin docs about webhook signature verification. It explains that parsing the request body (e.g., express.json()) before Better Auth breaks Stripe’s check and tells you to use the raw body. Also removes a redundant line in the local development section. <!-- 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:15: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#22751