[PR #8751] [MERGED] fix(passkey): use message #25090

Closed
opened 2026-04-15 22:43:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8751
Author: @okisdev
Created: 3/23/2026
Status: Merged
Merged: 3/24/2026
Merged by: @Bekacru

Base: canaryHead: fix(passkey)/use-message


📝 Commits (2)

📊 Changes

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

View changed files

📝 packages/passkey/src/client.ts (+6 -4)

📄 Description

This PR uses message instead of message type.


Summary by cubic

Return correct error message strings in the passkey client by reading the .message from PASSKEY_ERROR_CODES instead of returning the whole object. Applies to AUTH_CANCELLED, PREVIOUSLY_REGISTERED, REGISTRATION_CANCELLED, and the UNKNOWN_ERROR fallback, ensuring consistent, serializable error.message values.

Written for commit 1004b83797. Summary will update 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/8751 **Author:** [@okisdev](https://github.com/okisdev) **Created:** 3/23/2026 **Status:** ✅ Merged **Merged:** 3/24/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix(passkey)/use-message` --- ### 📝 Commits (2) - [`9e976e0`](https://github.com/better-auth/better-auth/commit/9e976e00d93070334e4c31394d3d3afbac35889b) fix(passkey): use message - [`1004b83`](https://github.com/better-auth/better-auth/commit/1004b837971c46e6a5e11d7151363891d5094951) fix(passkey): use message ### 📊 Changes **1 file changed** (+6 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/passkey/src/client.ts` (+6 -4) </details> ### 📄 Description This PR uses `message` instead of message type. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Return correct error message strings in the passkey client by reading the `.message` from `PASSKEY_ERROR_CODES` instead of returning the whole object. Applies to `AUTH_CANCELLED`, `PREVIOUSLY_REGISTERED`, `REGISTRATION_CANCELLED`, and the `UNKNOWN_ERROR` fallback, ensuring consistent, serializable error.message values. <sup>Written for commit 1004b837971c46e6a5e11d7151363891d5094951. Summary will update 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 22:43: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#25090