[PR #738] [MERGED] fix: Update backup code to use updateMany since userId isn't enforced to be unique #11706

Closed
opened 2026-04-13 07:57:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/738
Author: @Bekacru
Created: 12/3/2024
Status: Merged
Merged: 12/3/2024
Merged by: @Bekacru

Base: mainHead: fix/backup-verify


📝 Commits (1)

  • f83840e fix: Update backup code to use updateMany since userId isn't enforced to be unique, which would cause failures with Prisma.

📊 Changes

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

View changed files

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

📄 Description

closes #735


🔄 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/738 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/3/2024 **Status:** ✅ Merged **Merged:** 12/3/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/backup-verify` --- ### 📝 Commits (1) - [`f83840e`](https://github.com/better-auth/better-auth/commit/f83840e654b7cad80cf9687e23a31cb639c4de25) fix: Update backup code to use updateMany since userId isn't enforced to be unique, which would cause failures with Prisma. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/two-factor/backup-codes/index.ts` (+1 -1) </details> ### 📄 Description closes #735 --- <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 07:57: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#11706