[PR #6020] [MERGED] feat: refactor fetch plugins config disableDefaultFetchPlugins to include userAgentPlugin #6388

Closed
opened 2026-03-13 12:57:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6020
Author: @kaanozdokmeci
Created: 11/16/2025
Status: Merged
Merged: 11/17/2025
Merged by: @himself65

Base: canaryHead: patch-3


📝 Commits (2)

  • acfecef Refactor fetch plugins config disableDefaultFetchPlugins to include userAgentPlugin
  • 57b0c36 test: add tests for user agent inclusion in client config

📊 Changes

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

View changed files

packages/better-auth/src/client/config.test.ts (+52 -0)
📝 packages/better-auth/src/client/config.ts (+3 -2)

📄 Description

Summary by cubic

Updated fetch client config so disableDefaultFetchPlugins now disables both userAgentPlugin and redirectPlugin. If you still need a user agent when defaults are off, add userAgentPlugin to plugins manually.

Written for commit 57b0c36cb4. 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/6020 **Author:** [@kaanozdokmeci](https://github.com/kaanozdokmeci) **Created:** 11/16/2025 **Status:** ✅ Merged **Merged:** 11/17/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `patch-3` --- ### 📝 Commits (2) - [`acfecef`](https://github.com/better-auth/better-auth/commit/acfecef95fe6e0151aadee71042e6c7f8300c32f) Refactor fetch plugins config disableDefaultFetchPlugins to include userAgentPlugin - [`57b0c36`](https://github.com/better-auth/better-auth/commit/57b0c36cb4995b74c537524ddbde9564a4ec588f) test: add tests for user agent inclusion in client config ### 📊 Changes **2 files changed** (+55 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `packages/better-auth/src/client/config.test.ts` (+52 -0) 📝 `packages/better-auth/src/client/config.ts` (+3 -2) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updated fetch client config so disableDefaultFetchPlugins now disables both userAgentPlugin and redirectPlugin. If you still need a user agent when defaults are off, add userAgentPlugin to plugins manually. <sup>Written for commit 57b0c36cb4995b74c537524ddbde9564a4ec588f. 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 12:57:09 -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#6388