[PR #5683] [MERGED] fix(generic-oauth): overrideUserInfo doesn't work #31757

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5683
Author: @ping-maxwell
Created: 10/30/2025
Status: Merged
Merged: 10/30/2025
Merged by: @himself65

Base: canaryHead: fix/generic-oauth-overrideUserInfo-doesn't-work


📝 Commits (4)

📊 Changes

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

View changed files

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

📄 Description

For generic oauth providers that return to /api/auth/callback, overrideUserInfo doesn't work since we don't pass along the generic oauth configuration values into the automatically defining social providers that we have in the init fn.

This PR passes that configuration data along with the provider so that overrideUserInfo then also gets passed along.

linear: https://linear.app/better-auth/issue/ENG-549/fix-generic-oauth-entirely-skips-overrideuserinfo


🔄 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/5683 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 10/30/2025 **Status:** ✅ Merged **Merged:** 10/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/generic-oauth-overrideUserInfo-doesn't-work` --- ### 📝 Commits (4) - [`531a78a`](https://github.com/better-auth/better-auth/commit/531a78af24868d489cf55f0ed2b0c3d349f39f92) fix(generic-oauth): `overrideUserInfo` doesn't work - [`5d87ae5`](https://github.com/better-auth/better-auth/commit/5d87ae5e5ae1ff33a231b974848508a8b975e131) chore: lint - [`5136549`](https://github.com/better-auth/better-auth/commit/51365499f338ae2f327a54065ddb5684a54ca587) fix: invalid config - [`bd14761`](https://github.com/better-auth/better-auth/commit/bd14761576781611b792502083c40cfb0f6c2382) chore: lint ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+3 -1) </details> ### 📄 Description For generic oauth providers that return to `/api/auth/callback`, `overrideUserInfo` doesn't work since we don't pass along the generic oauth configuration values into the automatically defining social providers that we have in the `init` fn. This PR passes that configuration data along with the provider so that `overrideUserInfo` then also gets passed along. linear: https://linear.app/better-auth/issue/ENG-549/fix-generic-oauth-entirely-skips-overrideuserinfo --- <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 22:38:32 -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#31757