[PR #1308] [CLOSED] fix: return passkey data if valid #3746

Closed
opened 2026-03-13 11:09:44 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1308
Author: @benbehringer
Created: 1/30/2025
Status: Closed

Base: mainHead: fix/passkey-client-data


📝 Commits (1)

  • c67b637 fix: return passkey data if valid

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/passkey/client.ts (+10 -10)

📄 Description

This pull request modifies two conditional checks in the passkey client actions (signInPasskey and registerPasskey) so that the functions return the verified data when it exists instead of returning it only when there is no verified data. By switching from if (!verified.data) to if (verified.data), we ensure that a successful server response is propagated back to the caller.


🔄 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/1308 **Author:** [@benbehringer](https://github.com/benbehringer) **Created:** 1/30/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/passkey-client-data` --- ### 📝 Commits (1) - [`c67b637`](https://github.com/better-auth/better-auth/commit/c67b6371026aabf0c59c771d880caca102bc7e6c) fix: return passkey data if valid ### 📊 Changes **1 file changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/passkey/client.ts` (+10 -10) </details> ### 📄 Description This pull request modifies two conditional checks in the passkey client actions (signInPasskey and registerPasskey) so that the functions return the verified data when it exists instead of returning it only when there is no verified data. By switching from if (!verified.data) to if (verified.data), we ensure that a successful server response is propagated back to the caller. --- <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 11:09:44 -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#3746