[PR #5278] [CLOSED] chore: log getUserInfo errors to console #14144

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

📋 Pull Request Information

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

Base: canaryHead: chore/improve-oauth-getUserInfo-err-logs


📝 Commits (10+)

  • 66c13a9 chore: log getUserInfo errors to console
  • a902b9e Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • d53a804 Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • f50167b Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • 2f56b94 Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • 7326e67 Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • 755b047 Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • 5e072d9 Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • f487fb7 Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs
  • 41fc414 Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs

📊 Changes

1 file changed (+13 additions, -2 deletions)

View changed files

📝 packages/better-auth/src/api/routes/callback.ts (+13 -2)

📄 Description

This PR will log any thrown errors from any getUserInfo returned errors from oauth providers. It also passes the error message to the /api/auth/error as a error description.

issue: https://github.com/better-auth/better-auth/issues/5277

linear: https://linear.app/better-auth/issue/ENG-338/chore-improve-debugging-experience-during-oauth-unable-to-get-user


Summary by cubic

Log OAuth getUserInfo errors and forward the message to /api/auth/error for easier debugging. Addresses ENG-338 and improves unable_to_get_user_info handling, including logging when userInfo is missing without an error.

Written for commit aec18c03e6. 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/5278 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 10/13/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `chore/improve-oauth-getUserInfo-err-logs` --- ### 📝 Commits (10+) - [`66c13a9`](https://github.com/better-auth/better-auth/commit/66c13a9ec515b97d4067ee874cf3f0705d4d7e8f) chore: log getUserInfo errors to console - [`a902b9e`](https://github.com/better-auth/better-auth/commit/a902b9e6cf814b06694cfcb0bea360f1cd6b9a61) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`d53a804`](https://github.com/better-auth/better-auth/commit/d53a8045d4d53093fcd3233aa87b8c454b935c3f) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`f50167b`](https://github.com/better-auth/better-auth/commit/f50167b2712ee6b113b2066aafae5c0bb28a6bb9) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`2f56b94`](https://github.com/better-auth/better-auth/commit/2f56b94299e15189883b3e2f2d5e844cf32d30f6) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`7326e67`](https://github.com/better-auth/better-auth/commit/7326e67e598b51aae5d7067686a532e185df5cef) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`755b047`](https://github.com/better-auth/better-auth/commit/755b047e5a6722ab468666165ffca08566715979) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`5e072d9`](https://github.com/better-auth/better-auth/commit/5e072d97f1821d91807b0c7dc7b6dcf860986b8b) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`f487fb7`](https://github.com/better-auth/better-auth/commit/f487fb744aacdf280f1b889da34f6b155d9d2064) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs - [`41fc414`](https://github.com/better-auth/better-auth/commit/41fc414654d3b5fce1f33e1cd6763cd6863d8bcc) Merge branch 'canary' into chore/improve-oauth-getUserInfo-err-logs ### 📊 Changes **1 file changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/callback.ts` (+13 -2) </details> ### 📄 Description This PR will log any thrown errors from any getUserInfo returned errors from oauth providers. It also passes the error message to the /api/auth/error as a error description. issue: https://github.com/better-auth/better-auth/issues/5277 linear: https://linear.app/better-auth/issue/ENG-338/chore-improve-debugging-experience-during-oauth-unable-to-get-user <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Log OAuth getUserInfo errors and forward the message to /api/auth/error for easier debugging. Addresses ENG-338 and improves unable_to_get_user_info handling, including logging when userInfo is missing without an error. <sup>Written for commit aec18c03e62b24b075aa5995119222a187462827. 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-13 09:20: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#14144