diff --git a/src/runtime/server/lib/webauthn/register.ts b/src/runtime/server/lib/webauthn/register.ts index ac71668..1f30c1a 100644 --- a/src/runtime/server/lib/webauthn/register.ts +++ b/src/runtime/server/lib/webauthn/register.ts @@ -41,7 +41,7 @@ export function defineWebAuthnRegisterEventHandler({ throw createError({ status: 400, statusMessage: 'User Validation Error', - message: error?.message || 'User Validation Error', + message: 'User Validation Error', data: error, }) })