1. Race condition: rapid updateHosts/Keys/Identities calls could cause
out-of-order async writes. Added per-collection write-version counters
so only the latest encryption Promise persists to localStorage.
2. WebDAV token-auth: using "password" in config as discriminator failed
for token-auth configs because JSON.stringify drops undefined keys.
Switched to "authType" in config which is a required WebDAVConfig field.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>