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

Closed
opened 2026-04-13 10:31:14 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8751

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8751 **State:** closed **Merged:** Yes --- 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. -->
GiteaMirror added the pull-request label 2026-04-13 10:31:14 -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#16436