[PR #2620] [MERGED] fix(2fa): TOTP Verification #12651

Closed
opened 2026-04-13 08:31:01 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2620
Author: @ghost
Created: 5/11/2025
Status: Merged
Merged: 7/7/2025
Merged by: @Bekacru

Base: mainHead: totp-fix


📝 Commits (2)

  • f69d6a7 Update index.ts
  • 7dd1542 Merge branch 'better-auth:main' into totp-fix

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/two-factor/totp/index.ts (+1 -1)

📄 Description

The twoFactorEnabled boolean isn't enabled when enabling 2FA and you have to verify a code before confirming but you are unable to do this if twoFactorEnabled isn't set to true.


🔄 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/2620 **Author:** [@ghost](https://github.com/ghost) **Created:** 5/11/2025 **Status:** ✅ Merged **Merged:** 7/7/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `totp-fix` --- ### 📝 Commits (2) - [`f69d6a7`](https://github.com/better-auth/better-auth/commit/f69d6a742537ae25ec2984cd9b477ae55e7966f3) Update index.ts - [`7dd1542`](https://github.com/better-auth/better-auth/commit/7dd15423696f870462b06c5b85b8165016b94f52) Merge branch 'better-auth:main' into totp-fix ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/two-factor/totp/index.ts` (+1 -1) </details> ### 📄 Description The twoFactorEnabled boolean isn't enabled when enabling 2FA and you have to verify a code before confirming but you are unable to do this if twoFactorEnabled isn't set to true. --- <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-13 08:31:01 -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#12651