[PR #1481] [MERGED] fix: support allowDifferentEmails on Generic OAuth Plugin #29425

Closed
opened 2026-04-17 20:45:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1481
Author: @alessandrojean
Created: 2/18/2025
Status: Merged
Merged: 2/20/2025
Merged by: @Bekacru

Base: mainHead: fix-1479


📝 Commits (1)

  • b0c26ab fix: support allowDifferentEmails on Generic OAuth Plugin

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+4 -1)

📄 Description

This PR adds support to account.accountLinking.allowDifferentEmails to the Generic OAuth Plugin, so providers that doesn't provide the email can be added and also accounts with different emails can be linked as well, similar to the built-in social providers.

Closes #1479.


🔄 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/1481 **Author:** [@alessandrojean](https://github.com/alessandrojean) **Created:** 2/18/2025 **Status:** ✅ Merged **Merged:** 2/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix-1479` --- ### 📝 Commits (1) - [`b0c26ab`](https://github.com/better-auth/better-auth/commit/b0c26ab1a26cfe0124467c7576e595865400495e) fix: support allowDifferentEmails on Generic OAuth Plugin ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+4 -1) </details> ### 📄 Description This PR adds support to `account.accountLinking.allowDifferentEmails` to the Generic OAuth Plugin, so providers that doesn't provide the email can be added and also accounts with different emails can be linked as well, similar to the built-in social providers. Closes #1479. --- <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 20:45:38 -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#29425