[PR #5729] [MERGED] fix(oauth-proxy): rewrite logic and handle cross-origin flows #6182

Closed
opened 2026-03-13 12:50:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5729
Author: @bytaesu
Created: 11/2/2025
Status: Merged
Merged: 11/10/2025
Merged by: @Bekacru

Base: canaryHead: 2025-11-03/fix/oauth-proxy-issues


📝 Commits (4)

  • b7d10d2 fix(oauth-proxy): rewrite logic and handle cross-origin flows
  • b7a0e55 Update packages/better-auth/src/plugins/oauth-proxy/index.ts
  • a2ceb52 Update packages/better-auth/src/plugins/oauth-proxy/index.ts
  • bfb27ab Apply suggestions from code review

📊 Changes

1 file changed (+140 additions, -70 deletions)

View changed files

📝 packages/better-auth/src/plugins/oauth-proxy/index.ts (+140 -70)

📄 Description

This PR introduces the following changes to the OAuth Proxy.

  • Resolved state-related errors
  • Resolved cross-origin issues (e.g. Vercel preview)
  • ... other improvements 🤓

Closes https://github.com/better-auth/better-auth/issues/5563
Closes https://github.com/better-auth/better-auth/issues/1819


🔄 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/5729 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/2/2025 **Status:** ✅ Merged **Merged:** 11/10/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2025-11-03/fix/oauth-proxy-issues` --- ### 📝 Commits (4) - [`b7d10d2`](https://github.com/better-auth/better-auth/commit/b7d10d2253c9b7841c0661e181597e1ce81f9139) fix(oauth-proxy): rewrite logic and handle cross-origin flows - [`b7a0e55`](https://github.com/better-auth/better-auth/commit/b7a0e5580dd30695184727f45d58a1858f0caedb) Update packages/better-auth/src/plugins/oauth-proxy/index.ts - [`a2ceb52`](https://github.com/better-auth/better-auth/commit/a2ceb524dd4af0c9899d359d2726ca6f50ddb7c0) Update packages/better-auth/src/plugins/oauth-proxy/index.ts - [`bfb27ab`](https://github.com/better-auth/better-auth/commit/bfb27ab83c264d0ad248b963372495fde0c85731) Apply suggestions from code review ### 📊 Changes **1 file changed** (+140 additions, -70 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/oauth-proxy/index.ts` (+140 -70) </details> ### 📄 Description This PR introduces the following changes to the OAuth Proxy. - Resolved state-related errors - Resolved cross-origin issues (e.g. Vercel preview) - ... other improvements 🤓 Closes https://github.com/better-auth/better-auth/issues/5563 Closes https://github.com/better-auth/better-auth/issues/1819 --- <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-03-13 12:50:19 -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#6182