[PR #2325] [CLOSED] feat(two-factor): Added hook on 2fa disable #29862

Closed
opened 2026-04-17 21:06:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2325
Author: @JE4GLE
Created: 4/16/2025
Status: Closed

Base: mainHead: main


📝 Commits (6)

📊 Changes

2 files changed (+9 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/plugins/two-factor/index.ts (+3 -0)
📝 packages/better-auth/src/plugins/two-factor/types.ts (+6 -0)

📄 Description

My Use Case: I want to send an email to the user when 2FA has been disabled. Relying on client-side actions to send trigger the sending of an email is too unreliable and insecure.


🔄 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/2325 **Author:** [@JE4GLE](https://github.com/JE4GLE) **Created:** 4/16/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`1e7a02a`](https://github.com/better-auth/better-auth/commit/1e7a02ad2a9445fea3734a4dc10d0421fbfaa0f9) Update types.ts - [`e17a47c`](https://github.com/better-auth/better-auth/commit/e17a47cff1c6583b211f99a9ace5008cf5987519) Implement hook - [`e616042`](https://github.com/better-auth/better-auth/commit/e6160421b414432edcb9119bd1ad882664cd557a) Formatting - [`691dfc9`](https://github.com/better-auth/better-auth/commit/691dfc966794524e1c60d30f52c9495763e2ce4b) Formatting - [`8b49f9c`](https://github.com/better-auth/better-auth/commit/8b49f9cca8165d7199f343d75359556d95d9b497) Removed request - [`44365f4`](https://github.com/better-auth/better-auth/commit/44365f49e0b38256dd5686b45e7dd932f24e22dc) Await ### 📊 Changes **2 files changed** (+9 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/two-factor/index.ts` (+3 -0) 📝 `packages/better-auth/src/plugins/two-factor/types.ts` (+6 -0) </details> ### 📄 Description My Use Case: I want to send an email to the user when 2FA has been disabled. Relying on client-side actions to send trigger the sending of an email is too unreliable and insecure. --- <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-17 21:06:49 -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#29862