trails/apps/journal/app
Ullrich Schäfer d95d142122
Fix passkey credential ID encoding and improve error handling
Bug: @simplewebauthn v13 changed credential.id from Uint8Array to
base64url string. Buffer.from(string) without encoding stored the
ASCII text instead of decoded bytes. Authentication then failed to
match because it correctly decoded with "base64url".

Fix: Buffer.from(credential.id, "base64url") in both registration
and add-passkey flows.

Also: catch WebAuthn "not allowed" errors and show a friendly message
instead of the raw browser error.

Existing passkeys must be re-registered after deploy.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 21:18:14 +01:00
..
components Fix SSR hydration mismatch for dates 2026-03-24 20:22:58 +00:00
lib Fix passkey credential ID encoding and improve error handling 2026-03-27 21:18:14 +01:00
routes Fix passkey credential ID encoding and improve error handling 2026-03-27 21:18:14 +01:00
entry.client.tsx Disable Sentry session replays 2026-03-27 20:52:10 +01:00
entry.server.tsx Filter 404s from Sentry on client and server 2026-03-25 08:02:26 +00:00
root.tsx Fix i18n: move init to root.tsx and downgrade to stable versions 2026-03-25 23:18:15 +00:00
routes.ts Add health and metrics routes to Journal route config 2026-03-27 20:42:10 +01:00