[PR #6866] [CLOSED] fix: passkey - correct verification deletion when using useNumberId #15179

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

📋 Pull Request Information

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

Base: canaryHead: canary


📝 Commits (1)

  • 4bf9960 fix: passkey - correct verification deletion when using useNumberId

📊 Changes

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

View changed files

📝 packages/passkey/src/routes.ts (+6 -2)

📄 Description

Summary by cubic

Fixes passkey verification cleanup by deleting challenges by identifier, ensuring correct behavior when useNumberId is enabled. Prevents stale verification records after registration and authentication by using internalAdapter.deleteVerificationByIdentifier in both flows.

Written for commit 4bf9960d86. 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/6866 **Author:** [@tbveloso](https://github.com/tbveloso) **Created:** 12/18/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (1) - [`4bf9960`](https://github.com/better-auth/better-auth/commit/4bf9960d8648e9a8366a93ab24b4e1412fd306aa) fix: passkey - correct verification deletion when using useNumberId ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/passkey/src/routes.ts` (+6 -2) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixes passkey verification cleanup by deleting challenges by identifier, ensuring correct behavior when useNumberId is enabled. Prevents stale verification records after registration and authentication by using internalAdapter.deleteVerificationByIdentifier in both flows. <sup>Written for commit 4bf9960d8648e9a8366a93ab24b4e1412fd306aa. 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:24 -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#15179