Add Error for Passkey/WebAuthn Context Abort #158

Closed
opened 2026-03-13 07:35:49 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @awesomepandapig on GitHub (Oct 30, 2024).

Passkeys provide an error message when they are invalid (ie: missing from database) however there is currently no error message returned when the user starts and aborts a webauthn context. (This is likely since the process is aborted client side before the server responds).

I believe that it is necessary for there to be an error message on the client to indicate that a webauthn context has been aborted.

Next.JS already logs an error to indicate this has occured, I think the library should be capturing these errors and relaying them using the data.error format:

Screenshot 2024-10-30 at 12 17 07 PM

Example:
Screenshot 2024-10-30 at 12 15 27 PM

Originally created by @awesomepandapig on GitHub (Oct 30, 2024). Passkeys provide an error message when they are invalid (ie: missing from database) however there is currently no error message returned when the user starts and aborts a webauthn context. (This is likely since the process is aborted client side before the server responds). I believe that it is necessary for there to be an error message on the client to indicate that a webauthn context has been aborted. Next.JS already logs an error to indicate this has occured, I think the library should be capturing these errors and relaying them using the data.error format: <img width="472" alt="Screenshot 2024-10-30 at 12 17 07 PM" src="https://github.com/user-attachments/assets/c5892d3e-90b7-439b-8073-7a8035cdb64c"> Example: <img width="383" alt="Screenshot 2024-10-30 at 12 15 27 PM" src="https://github.com/user-attachments/assets/eae31853-afc0-4ee9-9133-78f6446886c5">
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#158