[PR #1952] [MERGED] fix: unlinkAccount should support optional accountId #4088

Closed
opened 2026-03-13 11:32:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1952
Author: @Bekacru
Created: 3/23/2025
Status: Merged
Merged: 3/23/2025
Merged by: @Bekacru

Base: mainHead: fix/unlinking-account


📝 Commits (2)

  • 8376abb fix: unlinkAccount should support optional accountId
  • 3a08e55 test: add unlink account tests for specific accountId and providerId

📊 Changes

3 files changed (+129 additions, -11 deletions)

View changed files

📝 docs/content/docs/concepts/users-accounts.mdx (+17 -1)
📝 packages/better-auth/src/api/routes/account.test.ts (+101 -0)
📝 packages/better-auth/src/api/routes/account.ts (+11 -10)

📄 Description

closes #1951


🔄 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/1952 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 3/23/2025 **Status:** ✅ Merged **Merged:** 3/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/unlinking-account` --- ### 📝 Commits (2) - [`8376abb`](https://github.com/better-auth/better-auth/commit/8376abbcfc1511547b93326bb987130e61fc5c29) fix: unlinkAccount should support optional accountId - [`3a08e55`](https://github.com/better-auth/better-auth/commit/3a08e55da2c3f90752e4c28759700e7eebbaf78b) test: add unlink account tests for specific accountId and providerId ### 📊 Changes **3 files changed** (+129 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/users-accounts.mdx` (+17 -1) 📝 `packages/better-auth/src/api/routes/account.test.ts` (+101 -0) 📝 `packages/better-auth/src/api/routes/account.ts` (+11 -10) </details> ### 📄 Description closes #1951 --- <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 11:32:05 -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#4088