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

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

Original Pull Request: https://github.com/better-auth/better-auth/pull/5683

State: closed
Merged: Yes


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

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5683 **State:** closed **Merged:** Yes --- 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
GiteaMirror added the pull-request label 2026-04-13 09:27:26 -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#14403