[PR #2704] [MERGED] feat: new user delete flow #21349

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2704
Author: @BlankParticle
Created: 5/18/2025
Status: Merged
Merged: 5/23/2025
Merged by: @Bekacru

Base: mainHead: feat/new-user-delete-flow


📝 Commits (2)

  • 02a2cd1 feat: new user delete flow
  • 9151cc8 fix: modify and add test cases

📊 Changes

5 files changed (+150 additions, -23 deletions)

View changed files

📝 docs/content/docs/concepts/users-accounts.mdx (+14 -3)
📝 packages/better-auth/src/api/routes/update-user.test.ts (+7 -3)
📝 packages/better-auth/src/api/routes/update-user.ts (+41 -17)
📝 packages/better-auth/src/error/codes.ts (+2 -0)
📝 packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts (+86 -0)

📄 Description

for context: https://discord.com/channels/1288403910284935179/1373686795765547180

This PR changes the delete user account flow to use the email verification for OAuth users to delete their account without a fresh session or setting a password.


🔄 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/2704 **Author:** [@BlankParticle](https://github.com/BlankParticle) **Created:** 5/18/2025 **Status:** ✅ Merged **Merged:** 5/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/new-user-delete-flow` --- ### 📝 Commits (2) - [`02a2cd1`](https://github.com/better-auth/better-auth/commit/02a2cd1a2d020271f7c0f451ca66345835a70d40) feat: new user delete flow - [`9151cc8`](https://github.com/better-auth/better-auth/commit/9151cc820a0e7eda6576bdb3403831b7536f5fab) fix: modify and add test cases ### 📊 Changes **5 files changed** (+150 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/users-accounts.mdx` (+14 -3) 📝 `packages/better-auth/src/api/routes/update-user.test.ts` (+7 -3) 📝 `packages/better-auth/src/api/routes/update-user.ts` (+41 -17) 📝 `packages/better-auth/src/error/codes.ts` (+2 -0) 📝 `packages/better-auth/src/plugins/generic-oauth/generic-oauth.test.ts` (+86 -0) </details> ### 📄 Description for context: https://discord.com/channels/1288403910284935179/1373686795765547180 This PR changes the delete user account flow to use the email verification for OAuth users to delete their account without a fresh session or setting a password. --- <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:18:30 -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#21349