[PR #5676] [CLOSED] fix: generic oauth mapProfileToUser bug #23053

Closed
opened 2026-04-15 21:27:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5676
Author: @ping-maxwell
Created: 10/30/2025
Status: Closed

Base: canaryHead: fix/testing-generic-oauth-nextjs-mapProfileToUser-bug


📝 Commits (2)

📊 Changes

4 files changed (+16 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts (+13 -1)
📝 packages/better-auth/src/api/routes/callback.ts (+1 -0)
📝 packages/better-auth/src/oauth2/link-account.ts (+2 -0)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+0 -1)

📄 Description

This PR is just here for testing purposes. Not a real PR!


Summary by cubic

Added debug logging in Generic OAuth to trace mapProfileToUser and userInfo during account linking and user creation, showing raw provider data and the sanitized version (without id). Updated Drizzle adapter deleteMany to return the affected row count and log an error if the result shape is unexpected.

Written for commit 269027c. 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/5676 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 10/30/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/testing-generic-oauth-nextjs-mapProfileToUser-bug` --- ### 📝 Commits (2) - [`c4c243f`](https://github.com/better-auth/better-auth/commit/c4c243f7b9d128392c4afc92550962c73a63c907) fix: generic oauth mapProfileToUser bug - [`269027c`](https://github.com/better-auth/better-auth/commit/269027c62fa7b0451276622d8ce0f48797e336e9) test ### 📊 Changes **4 files changed** (+16 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts` (+13 -1) 📝 `packages/better-auth/src/api/routes/callback.ts` (+1 -0) 📝 `packages/better-auth/src/oauth2/link-account.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+0 -1) </details> ### 📄 Description # This PR is just here for testing purposes. Not a real PR! <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added debug logging in Generic OAuth to trace mapProfileToUser and userInfo during account linking and user creation, showing raw provider data and the sanitized version (without id). Updated Drizzle adapter deleteMany to return the affected row count and log an error if the result shape is unexpected. <sup>Written for commit 269027c. 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-15 21:27:07 -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#23053