[PR #6236] fix(fastify): Change request body handling from undefined to null #14784

Open
opened 2026-04-13 09:38:16 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6236
Author: @quanghuynt14
Created: 11/23/2025
Status: 🔄 Open

Base: mainHead: patch-2


📝 Commits (1)

  • b69bf65 Change request body handling from undefined to null

📊 Changes

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

View changed files

📝 docs/content/docs/integrations/fastify.mdx (+1 -1)

📄 Description

Fix TS error


Summary by cubic

Update Fastify integration example to pass null for Request body when no payload is present, instead of undefined. This resolves the TypeScript error by matching RequestInit’s expected type and keeps the example consistent.

Written for commit b69bf65d82. Summary will update automatically 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/6236 **Author:** [@quanghuynt14](https://github.com/quanghuynt14) **Created:** 11/23/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `patch-2` --- ### 📝 Commits (1) - [`b69bf65`](https://github.com/better-auth/better-auth/commit/b69bf65d82cbcf3904e74c0292106d35b1a6cd1c) Change request body handling from undefined to null ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/integrations/fastify.mdx` (+1 -1) </details> ### 📄 Description Fix TS error <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Update Fastify integration example to pass null for Request body when no payload is present, instead of undefined. This resolves the TypeScript error by matching RequestInit’s expected type and keeps the example consistent. <sup>Written for commit b69bf65d82cbcf3904e74c0292106d35b1a6cd1c. Summary will update automatically 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-13 09:38:16 -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#14784