[PR #7778] [CLOSED] fix(oauth-provider): login via a sign-in provider redirects #33149

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7778
Author: @dvanmali
Created: 2/3/2026
Status: Closed

Base: canaryHead: opRedirectRevert


📝 Commits (2)

📊 Changes

1 file changed (+1 additions, -3 deletions)

View changed files

📝 packages/better-auth/src/cookies/index.ts (+1 -3)

📄 Description

Additionally uses isProduction for an empty string which is set in the createAuthContext function for baseURL. Fixes redirection from an oauth flow back to the original application for the oauth-provider plugin.

Related: #7558


🔄 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/7778 **Author:** [@dvanmali](https://github.com/dvanmali) **Created:** 2/3/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `opRedirectRevert` --- ### 📝 Commits (2) - [`3f86475`](https://github.com/better-auth/better-auth/commit/3f8647564cccf26065f746be3ffe2531151837e6) chore: test commit removal - [`f75efba`](https://github.com/better-auth/better-auth/commit/f75efba94c2161a4507c8fdf82d786332035f87f) fix: secure cookies ### 📊 Changes **1 file changed** (+1 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/cookies/index.ts` (+1 -3) </details> ### 📄 Description Additionally uses `isProduction` for an empty string which is set in the `createAuthContext` function for baseURL. Fixes redirection from an oauth flow back to the original application for the oauth-provider plugin. Related: #7558 --- <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 23:48:57 -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#33149