[PR #6864] [CLOSED] fix: correct verification deletion when using useNumberId #15177

Closed
opened 2026-04-13 09:52:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6864
Author: @tbveloso
Created: 12/18/2025
Status: Closed

Base: canaryHead: passkey-fix


📝 Commits (2)

  • 60c98ca fix: correct verification deletion when using useNumberId
  • 89a4989 fix: correct verification deletion when using useNumberId - lint ok

📊 Changes

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

View changed files

📝 packages/passkey/src/routes.ts (+7 -3)

📄 Description

Summary by cubic

Fix verification cleanup in passkey registration and authentication by deleting by identifier (challengeId) instead of value. Ensures verifications are removed correctly when useNumberId is enabled, preventing stale challenge records.

Written for commit 89a4989269. Summary will update automatically on new commits.


🔄 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/6864 **Author:** [@tbveloso](https://github.com/tbveloso) **Created:** 12/18/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `passkey-fix` --- ### 📝 Commits (2) - [`60c98ca`](https://github.com/better-auth/better-auth/commit/60c98cadfbcf71ac8ca5becea81f93ebf9f9517a) fix: correct verification deletion when using useNumberId - [`89a4989`](https://github.com/better-auth/better-auth/commit/89a49892698c2fa69d905eb2e6abcd9b75b93f5b) fix: correct verification deletion when using useNumberId - lint ok ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/passkey/src/routes.ts` (+7 -3) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fix verification cleanup in passkey registration and authentication by deleting by identifier (challengeId) instead of value. Ensures verifications are removed correctly when useNumberId is enabled, preventing stale challenge records. <sup>Written for commit 89a49892698c2fa69d905eb2e6abcd9b75b93f5b. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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 09:52:17 -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#15177