[PR #6865] [CLOSED] fix: passkey - correct verification deletion when using useNumberId #6931

Closed
opened 2026-03-13 13:17:29 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: canary


📝 Commits (1)

  • 48745e9 fix: passkey - correct verification deletion when using useNumberId

📊 Changes

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

View changed files

📝 packages/passkey/src/routes.ts (+9 -4)

📄 Description

Summary by cubic

Fixes passkey verification cleanup to support useNumberId by deleting challenges by identifier instead of value. Prevents leftover verification records after successful registration or authentication.

  • Bug Fixes
    • Replace deleteVerificationValue with deleteVerificationByIdentifier in both registration and authentication flows.

Written for commit 48745e985a. 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/6865 **Author:** [@tbveloso](https://github.com/tbveloso) **Created:** 12/18/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (1) - [`48745e9`](https://github.com/better-auth/better-auth/commit/48745e985a54c75ef5d91c8c11889c5ce3d19136) fix: passkey - correct verification deletion when using useNumberId ### 📊 Changes **1 file changed** (+9 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/passkey/src/routes.ts` (+9 -4) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixes passkey verification cleanup to support useNumberId by deleting challenges by identifier instead of value. Prevents leftover verification records after successful registration or authentication. - **Bug Fixes** - Replace deleteVerificationValue with deleteVerificationByIdentifier in both registration and authentication flows. <sup>Written for commit 48745e985a54c75ef5d91c8c11889c5ce3d19136. 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-03-13 13:17:29 -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#6931