[PR #1688] [MERGED] fix(two-factor): Pass options to default backup code generate function #29545

Closed
opened 2026-04-17 20:51:51 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1688
Author: @Wundero
Created: 3/5/2025
Status: Merged
Merged: 3/5/2025
Merged by: @Bekacru

Base: mainHead: fix/adhere-to-backup-code-cfg


📝 Commits (1)

  • 0362e87 Pass options to default generate function

📊 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

I noticed that the options parameter was not being passed into the default backup code generation function, which would mean the length and amount options would never be used. This PR simply fixes that behavior.


🔄 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/1688 **Author:** [@Wundero](https://github.com/Wundero) **Created:** 3/5/2025 **Status:** ✅ Merged **Merged:** 3/5/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/adhere-to-backup-code-cfg` --- ### 📝 Commits (1) - [`0362e87`](https://github.com/better-auth/better-auth/commit/0362e8712c08dd7392df2aaceae95f34358a291e) Pass options to default generate function ### 📊 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 I noticed that the options parameter was not being passed into the default backup code generation function, which would mean the `length` and `amount` options would never be used. This PR simply fixes that behavior. --- <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 20:51:51 -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#29545