[PR #5209] fix(passkey): verify passkey authentication isnt returning the user #22754

Open
opened 2026-04-15 21:15:22 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5209
Author: @ouwargui
Created: 10/10/2025
Status: 🔄 Open

Base: mainHead: fix/verify-passkey-authentication-not-returning-user


📝 Commits (2)

  • 49750bb fix(passkey): verify passkey authentication isnt returning the user
  • df1281b fix(passkey): add test for verifying passkey authentication and returning user

📊 Changes

2 files changed (+97 additions, -1 deletions)

View changed files

📝 packages/passkey/src/index.ts (+1 -0)
📝 packages/passkey/src/passkey.test.ts (+96 -1)

📄 Description

Summary by cubic

Fixed passkey verification to return the authenticated user along with the session, so clients can correctly initialize user state after login.

  • Bug Fixes
    • Added user to the verify passkey JSON response. Response now includes { session, user } with status 200.

Written for commit df1281bec0. 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/5209 **Author:** [@ouwargui](https://github.com/ouwargui) **Created:** 10/10/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix/verify-passkey-authentication-not-returning-user` --- ### 📝 Commits (2) - [`49750bb`](https://github.com/better-auth/better-auth/commit/49750bb91fd102f457d7a5dd9e54c8585d5ac813) fix(passkey): verify passkey authentication isnt returning the user - [`df1281b`](https://github.com/better-auth/better-auth/commit/df1281bec024fd37ea13c78fcf8fd14817968f95) fix(passkey): add test for verifying passkey authentication and returning user ### 📊 Changes **2 files changed** (+97 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/passkey/src/index.ts` (+1 -0) 📝 `packages/passkey/src/passkey.test.ts` (+96 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed passkey verification to return the authenticated user along with the session, so clients can correctly initialize user state after login. - **Bug Fixes** - Added user to the verify passkey JSON response. Response now includes { session, user } with status 200. <sup>Written for commit df1281bec024fd37ea13c78fcf8fd14817968f95. 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-15 21:15:22 -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#22754