utils/crdt_sync_dart/lib/src
Krzysztof kuhy Rudnicki feaaf69103 Accept an empty password when parsing a stored Firebase account
Both the Google one-tap path and the seeded-session path deliberately write
`FirebaseAccount(email: ..., password: '')` -- on those devices the refresh
token in the keystore is the credential, and there is no password to store.

`tryParse` rejected exactly that blob. So a device signed in with Google
wrote an account marker it could never read back: every later launch saw
"not configured", fell through to the mirror, and left a perfectly good
refresh token unused in the keystore beside it.

Only widens what parses, so no caller that previously got an account back
can regress. Every call site already guards `password.isEmpty` and passes
null for it -- meaning "no password on this device" -- which is precisely
the case this now lets them see. An empty *email* stays rejected: it
carries no identity at all.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CFSGeWxHPY5rHUGrPqhcmG
2026-08-22 17:19:49 +02:00
..
device.dart Add DeviceIdentity and a legacy device id for the uuid migration 2026-08-09 16:54:33 +02:00
firebase_account_provisioning.dart Let a desktop wrapper provision the sync account, no UI required 2026-08-09 21:33:22 +02:00
firebase_auth_error.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
firebase_auth_rest.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
firebase_client.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
firebase_config.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
firebase_credentials.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
firebase_errors.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
firebase_keys.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
firebase_settings.dart Accept an empty password when parsing a stored Firebase account 2026-08-22 17:19:49 +02:00
github_client.dart crdt_sync: add a Firebase Realtime Database transport behind a RemoteStore seam 2026-08-03 18:14:25 +02:00
hlc.dart Initial implementation: unified CRDT merge scheme + GitHub sync transport 2026-07-05 20:48:07 +02:00
io_store.dart Add LogStore local-persistence layer to crdt_sync (v0.2.0) 2026-07-11 22:19:34 +02:00
log.dart Initial implementation: unified CRDT merge scheme + GitHub sync transport 2026-07-05 20:48:07 +02:00
mirror_store.dart Let a mirror read survive the primary being down 2026-08-10 14:30:29 +02:00
record.dart Fix wire-format key mismatch with Python (deletedHlc -> deleted_hlc) 2026-07-05 20:55:22 +02:00
remote_store.dart crdt_sync: add a Firebase Realtime Database transport behind a RemoteStore seam 2026-08-03 18:14:25 +02:00
secure_credential_store.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
store.dart Add LogStore local-persistence layer to crdt_sync (v0.2.0) 2026-07-11 22:19:34 +02:00
sync_state.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00
sync.dart crdt_sync_dart: split four library files — package now under the cap 2026-08-22 15:36:03 +02:00