[PR #6417] [MERGED] fix: remove applying user-agent by default #6651

Closed
opened 2026-03-13 13:06:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6417
Author: @Bekacru
Created: 11/30/2025
Status: Merged
Merged: 11/30/2025
Merged by: @Bekacru

Base: canaryHead: fix/user-agent


📝 Commits (1)

  • 57ca7b7 fix: remove applying user-agent by default

📊 Changes

2 files changed (+2 additions, -14 deletions)

View changed files

📝 packages/better-auth/src/client/config.ts (+2 -4)
📝 packages/better-auth/src/client/fetch-plugins.ts (+0 -10)

📄 Description

closes #6358

Summary by cubic

Removed the automatic "user-agent: better-auth" header from client requests by removing the userAgentPlugin and excluding it from default plugins. This prevents overriding runtime user agents and avoids header issues.

  • Migration
    • If you relied on this header, add it manually via a custom BetterFetch plugin or set the header on your requests.

Written for commit 57ca7b720d. 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/6417 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/30/2025 **Status:** ✅ Merged **Merged:** 11/30/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/user-agent` --- ### 📝 Commits (1) - [`57ca7b7`](https://github.com/better-auth/better-auth/commit/57ca7b720d6254b5f99fe99f4174fa855df66fb0) fix: remove applying user-agent by default ### 📊 Changes **2 files changed** (+2 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/config.ts` (+2 -4) 📝 `packages/better-auth/src/client/fetch-plugins.ts` (+0 -10) </details> ### 📄 Description closes #6358 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Removed the automatic "user-agent: better-auth" header from client requests by removing the userAgentPlugin and excluding it from default plugins. This prevents overriding runtime user agents and avoids header issues. - **Migration** - If you relied on this header, add it manually via a custom BetterFetch plugin or set the header on your requests. <sup>Written for commit 57ca7b720d6254b5f99fe99f4174fa855df66fb0. 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-03-13 13:06:49 -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#6651