[PR #7849] [CLOSED] fix(oauth-provider): redirect with uri #24492

Closed
opened 2026-04-15 22:23:53 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: opRedirect


📝 Commits (1)

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/fetch-plugins.ts (+3 -2)

📄 Description

Redirects using the redirect plugin for return type.

{
    redirect: true,
    uri: string,
}

Alternative: #7811
Closes: #7807


Summary by cubic

Update the redirect plugin to support responses that use uri, not just url. This fixes OAuth flows that return { redirect: true, uri } by redirecting to the correct location.

Written for commit 95dce46766. Summary will update 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/7849 **Author:** [@dvanmali](https://github.com/dvanmali) **Created:** 2/7/2026 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `opRedirect` --- ### 📝 Commits (1) - [`95dce46`](https://github.com/better-auth/better-auth/commit/95dce467663987f29a46fa4bba96a4ff34475160) fix: redirect with uri ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/fetch-plugins.ts` (+3 -2) </details> ### 📄 Description Redirects using the redirect plugin for return type. ```ts { redirect: true, uri: string, } ``` Alternative: #7811 Closes: #7807 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Update the redirect plugin to support responses that use uri, not just url. This fixes OAuth flows that return { redirect: true, uri } by redirecting to the correct location. <sup>Written for commit 95dce467663987f29a46fa4bba96a4ff34475160. Summary will update 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 22:23:53 -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#24492