[PR #4014] [MERGED] feat: add disableRedirect to linkSocial #22037

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4014
Author: @frectonz
Created: 8/14/2025
Status: Merged
Merged: 8/15/2025
Merged by: @Bekacru

Base: canaryHead: feat/disable-redirect-in-link-social


📝 Commits (2)

  • 2f63202 feat: add disableRedirect to linkSocial
  • 2c70536 fix: do not redirect if url is an empty string

📊 Changes

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

View changed files

📝 packages/better-auth/src/api/routes/account.ts (+16 -3)

📄 Description

closes #3738


Summary by cubic

Added a disableRedirect option to the linkSocial endpoint so clients can control provider redirection during social account linking.

  • New Features
  • Clients can now disable automatic redirect and handle provider navigation themselves, such as opening in a popup or new tab.

🔄 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/4014 **Author:** [@frectonz](https://github.com/frectonz) **Created:** 8/14/2025 **Status:** ✅ Merged **Merged:** 8/15/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `feat/disable-redirect-in-link-social` --- ### 📝 Commits (2) - [`2f63202`](https://github.com/better-auth/better-auth/commit/2f632027e3fb481c6d3ddf48e6d84fd435020114) feat: add `disableRedirect` to `linkSocial` - [`2c70536`](https://github.com/better-auth/better-auth/commit/2c70536bcb0664ca212aba4337861f7ab375ac0c) fix: do not redirect if url is an empty string ### 📊 Changes **1 file changed** (+16 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/account.ts` (+16 -3) </details> ### 📄 Description closes #3738 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added a `disableRedirect` option to the `linkSocial` endpoint so clients can control provider redirection during social account linking. - **New Features** - Clients can now disable automatic redirect and handle provider navigation themselves, such as opening in a popup or new tab. <!-- 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 20:46:14 -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#22037