super-productivity/packages/super-sync-server/prisma
Johannes Millan 868ed71c4a fix(sync-server): add migration script for passkey credential IDs
Existing passkeys were stored with double-encoded credential IDs due to
a bug where SimpleWebAuthn's credentialInfo.id (UTF-8 bytes of base64url
string) was stored directly instead of being decoded to raw bytes first.

This migration script converts existing passkeys from the old format
(ASCII bytes of base64url string) to the correct format (raw credential
ID bytes).

Run with: npx ts-node prisma/migrations/migrate-passkey-credentials.ts
2026-01-03 14:44:18 +01:00
..
migrations fix(sync-server): add migration script for passkey credential IDs 2026-01-03 14:44:18 +01:00
schema.prisma chore: code review improvements for operation-logs branch 2026-01-03 13:17:42 +01:00