[PR #7779] [MERGED] fix(generic-oauth): emit duplicate id warning #33150

Closed
opened 2026-04-17 23:49:00 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7779
Author: @himself65
Created: 2/3/2026
Status: Merged
Merged: 2/3/2026
Merged by: @himself65

Base: canaryHead: himself65/2026/02/03/duplicate


📝 Commits (1)

  • 0a6920a fix(generic-oauth): duplicate id check

📊 Changes

2 files changed (+186 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts (+169 -1)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+17 -0)

📄 Description

Summary by cubic

Detect duplicate provider IDs in the generic OAuth plugin and log a console warning listing the duplicates to prevent misconfiguration. Adds tests for single, multiple, and no-duplicate scenarios to ensure correct behavior.

Written for commit 0a6920a25a. Summary will update 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/7779 **Author:** [@himself65](https://github.com/himself65) **Created:** 2/3/2026 **Status:** ✅ Merged **Merged:** 2/3/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `himself65/2026/02/03/duplicate` --- ### 📝 Commits (1) - [`0a6920a`](https://github.com/better-auth/better-auth/commit/0a6920a25a28431ee2b53fb1430415694fbfb3e0) fix(generic-oauth): duplicate id check ### 📊 Changes **2 files changed** (+186 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts` (+169 -1) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+17 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Detect duplicate provider IDs in the generic OAuth plugin and log a console warning listing the duplicates to prevent misconfiguration. Adds tests for single, multiple, and no-duplicate scenarios to ensure correct behavior. <sup>Written for commit 0a6920a25a28431ee2b53fb1430415694fbfb3e0. Summary will update 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-17 23:49:00 -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#33150