Rework backend #1
@@ -122,13 +122,10 @@ const initializeStorage = () => {
|
||||
}
|
||||
|
||||
// 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 };
|
||||
auth = {
|
||||
currentUser: FAKE_USER,
|
||||
};
|
||||
db = { __localStub: true };
|
||||
storage = getStorage();
|
||||
return true;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user