trails/apps/journal/app/routes
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
..
activities.$id.tsx Implement Journal activity feed (Group 10) 2026-03-24 23:20:04 +01:00
activities._index.tsx Implement Journal activity feed (Group 10) 2026-03-24 23:20:04 +01:00
activities.new.tsx Implement Journal activity feed (Group 10) 2026-03-24 23:20:04 +01:00
api.auth.login.ts Add transactional emails (SMTP) and planner features (no-go areas, notes, crash recovery) 2026-03-26 01:00:42 +01:00
api.auth.register.ts Add observability: health endpoints, structured logging, metrics, Grafana stack 2026-03-26 22:59:44 +01:00
api.health.ts Add version (git SHA) to health endpoints 2026-03-27 20:48:27 +01:00
api.metrics.ts Add observability: health endpoints, structured logging, metrics, Grafana stack 2026-03-26 22:59:44 +01:00
api.routes.$id.callback.ts Fix CORS on Planner→Journal callback endpoint 2026-03-25 01:16:32 +00:00
api.routes.$id.edit-in-planner.ts Fix waypoint loading in Edit in Planner flow 2026-03-24 20:22:58 +00:00
api.routes.$id.gpx.ts Fix GPX export: use API route with direct download link 2026-03-24 20:22:58 +00:00
auth.login.tsx Fix passkey credential ID encoding and improve error handling 2026-03-27 21:18:14 +01:00
auth.logout.tsx Implement Journal auth: passkeys + magic links, no passwords 2026-03-23 17:38:46 +01:00
auth.register.tsx Wire up i18n in both apps 2026-03-25 01:47:58 +00:00
auth.verify.tsx Implement Journal auth: passkeys + magic links, no passwords 2026-03-23 17:38:46 +01:00
home.tsx Sentry improvements: context, tracing, source maps, privacy manifest 2026-03-25 03:11:07 +01:00
privacy.tsx Add transactional emails (SMTP) and planner features (no-go areas, notes, crash recovery) 2026-03-26 01:00:42 +01:00
routes.$id.edit.tsx Implement Journal route management (Group 8) 2026-03-23 22:25:10 +01:00
routes.$id.tsx Wire up i18n in both apps 2026-03-25 01:47:58 +00:00
routes._index.tsx Wire up i18n in both apps 2026-03-25 01:47:58 +00:00
routes.new.tsx Implement Journal route management (Group 8) 2026-03-23 22:25:10 +01:00
users.$username.tsx Implement Journal auth: passkeys + magic links, no passwords 2026-03-23 17:38:46 +01:00