[PR #3173] [CLOSED] feat(org): Transfer ownership functionality #4687

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3173
Author: @ping-maxwell
Created: 6/25/2025
Status: Closed

Base: mainHead: feat/org/transfer-owner


📝 Commits (2)

  • 248df02 feat(org): Transfer ownership functionality
  • ad4164d fix: cannot transfer ownership to themselves

📊 Changes

5 files changed (+195 additions, -1 deletions)

View changed files

📝 docs/content/docs/plugins/organization.mdx (+15 -0)
📝 packages/better-auth/src/plugins/organization/error-codes.ts (+7 -0)
📝 packages/better-auth/src/plugins/organization/organization.test.ts (+62 -0)
📝 packages/better-auth/src/plugins/organization/organization.ts (+12 -1)
📝 packages/better-auth/src/plugins/organization/routes/crud-members.ts (+99 -0)

📄 Description

The ability to transfer the owner role from one user to another in the org plugin.

  • docs
  • tests
image

🔄 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/3173 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 6/25/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/org/transfer-owner` --- ### 📝 Commits (2) - [`248df02`](https://github.com/better-auth/better-auth/commit/248df025d7eb29be8df18e02cc098f2fcc974c58) feat(org): Transfer ownership functionality - [`ad4164d`](https://github.com/better-auth/better-auth/commit/ad4164da133b8ef64539703b8888f1dff9c6d8a8) fix: cannot transfer ownership to themselves ### 📊 Changes **5 files changed** (+195 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/organization.mdx` (+15 -0) 📝 `packages/better-auth/src/plugins/organization/error-codes.ts` (+7 -0) 📝 `packages/better-auth/src/plugins/organization/organization.test.ts` (+62 -0) 📝 `packages/better-auth/src/plugins/organization/organization.ts` (+12 -1) 📝 `packages/better-auth/src/plugins/organization/routes/crud-members.ts` (+99 -0) </details> ### 📄 Description The ability to transfer the owner role from one user to another in the org plugin. - [x] docs - [x] tests <img width="889" alt="image" src="https://github.com/user-attachments/assets/20f54e9f-8ab7-44f6-8a20-0e52ff655969" /> --- <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:55:45 -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#4687