Revert "M3: stub db sentinel in ws/memory mode so legacy guards pass"

This reverts commit a5a4df78f0.
This commit is contained in:
david raistrick
2026-06-29 12:03:57 -04:00
parent a5a4df78f0
commit d1ee69a70a
-3
View File
@@ -122,13 +122,10 @@ const initializeStorage = () => {
} }
// ws / memory mode: stub auth so App's anon-sign-in path works. // ws / memory mode: stub auth so App's anon-sign-in path works.
// db stays a truthy sentinel object so legacy `if (!db) return` guards pass;
// all real reads/writes route through `storage.*`, never the SDK `db`.
const FAKE_USER = { uid: 'local-user', isAnonymous: true }; const FAKE_USER = { uid: 'local-user', isAnonymous: true };
auth = { auth = {
currentUser: FAKE_USER, currentUser: FAKE_USER,
}; };
db = { __localStub: true };
storage = getStorage(); storage = getStorage();
return true; return true;
}; };