[PR #6718] [MERGED] chore: dont show conflict error for virtual endpoints #15093

Closed
opened 2026-04-13 09:49:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: chore/conflict


📝 Commits (1)

  • a9b5e82 chore: dont show conflict error for virtual endpoints

📊 Changes

3 files changed (+28 additions, -2 deletions)

View changed files

📝 demo/nextjs/tsconfig.json (+1 -0)
📝 packages/better-auth/src/api/check-endpoint-conflicts.test.ts (+22 -1)
📝 packages/better-auth/src/api/index.ts (+5 -1)

📄 Description

Summary by cubic

Prevent false conflict errors by ignoring virtual plugin endpoints that don’t define a path. This removes noisy error logs during startup.

  • Bug Fixes
    • Validate endpoint.path is a string before checking conflicts.
    • Add tests for plugins with path-less endpoints to ensure no error is logged.
    • Enable declarationMap in the demo tsconfig for better type debugging.

Written for commit a9b5e82bad. 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/6718 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/12/2025 **Status:** ✅ Merged **Merged:** 12/12/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `chore/conflict` --- ### 📝 Commits (1) - [`a9b5e82`](https://github.com/better-auth/better-auth/commit/a9b5e82badebe34d43e9932583b8f411e4855037) chore: dont show conflict error for virtual endpoints ### 📊 Changes **3 files changed** (+28 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/tsconfig.json` (+1 -0) 📝 `packages/better-auth/src/api/check-endpoint-conflicts.test.ts` (+22 -1) 📝 `packages/better-auth/src/api/index.ts` (+5 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Prevent false conflict errors by ignoring virtual plugin endpoints that don’t define a path. This removes noisy error logs during startup. - **Bug Fixes** - Validate endpoint.path is a string before checking conflicts. - Add tests for plugins with path-less endpoints to ensure no error is logged. - Enable declarationMap in the demo tsconfig for better type debugging. <sup>Written for commit a9b5e82badebe34d43e9932583b8f411e4855037. 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:49:30 -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#15093