[PR #1593] [MERGED] refactor: improve OAuth callback error handling and add errorURL for custom error pages #29484

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1593
Author: @Bekacru
Created: 2/27/2025
Status: Merged
Merged: 2/28/2025
Merged by: @Bekacru

Base: mainHead: fix/callback-error


📝 Commits (3)

  • 7cd4552 refactor: improve OAuth callback error handling
  • 549522b feat: add optional errorURL configuration for OAuth callback
  • 4716120 feat: enhance OAuth error handling with error description

📊 Changes

3 files changed (+54 additions, -41 deletions)

View changed files

📝 packages/better-auth/src/api/routes/callback.ts (+25 -26)
📝 packages/better-auth/src/plugins/generic-oauth/index.ts (+20 -15)
📝 packages/better-auth/src/types/options.ts (+9 -0)

📄 Description

closes #1580


🔄 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/1593 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 2/27/2025 **Status:** ✅ Merged **Merged:** 2/28/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/callback-error` --- ### 📝 Commits (3) - [`7cd4552`](https://github.com/better-auth/better-auth/commit/7cd45523600bdc7494a4ecb8505844883d1381a2) refactor: improve OAuth callback error handling - [`549522b`](https://github.com/better-auth/better-auth/commit/549522b1c5f373b3eb5364d2ebe966ebf3a650cc) feat: add optional errorURL configuration for OAuth callback - [`4716120`](https://github.com/better-auth/better-auth/commit/471612013af88f4e06e64f5b6c55948cbb1048cf) feat: enhance OAuth error handling with error description ### 📊 Changes **3 files changed** (+54 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/callback.ts` (+25 -26) 📝 `packages/better-auth/src/plugins/generic-oauth/index.ts` (+20 -15) 📝 `packages/better-auth/src/types/options.ts` (+9 -0) </details> ### 📄 Description closes #1580 --- <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:48:46 -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#29484