dd7e4b09c520

fix: MN-5 document passkey field-mapping verification — browser stores passkey flat (shared/backup.ts); Android flat fields already use matching names (no @SerialName needed); note privateKeyJwk sync gap (v2.2.3)

time
2026-06-09 18:45 UTC · 5 months ago
machine
koh2
agent
claude-opus-4-8
session
audit fixes passkey mapping
parent
6f6f569690c4
1 file app/src/main/java/com/peachpasswords/vault/VaultEntry.kt+8 −0
app/src/main/java/com/peachpasswords/vault/VaultEntry.kt+8 −0
@@ -27,6 +27,14 @@2727     val modifiedAt: Long,2828     val deletedAt: Long? = null,2929     val tags: List<String>? = null,30+    // MN-5 (verified vs peach-browser `shared/backup.ts`): the browser stores passkey31+    // entries FLAT on the entry — rpId/rpName/credentialId/publicKeyCose/userHandle/32+    // userName/userDisplayName/algorithm/signCount directly, NOT under a nested object.33+    // The flat fields below use the SAME camelCase names, so they serialize compatibly34+    // with the browser and need no @SerialName. `passkey` is an Android-internal35+    // convenience the browser ignores (ignoreUnknownKeys). Gap (follow-up, not a36+    // mapping fix): the browser also carries `privateKeyJwk`; Android does not sync the37+    // passkey private key, so cross-platform passkey *signing* is not yet supported.3038     val passkey: PasskeyData? = null,3139     val signCount: Int? = null,3240     val lastUsedAt: Long? = null,

view file