Description
Operating System
macOS Sequoia
Environment (if applicable)
Electron
Firebase SDK Version
11.4.0
Firebase SDK Product(s)
Auth
Project Tooling
Electron app with webpack and React
Detailed Problem Description
Dear team,
I experience an issue with an electron react app, using firebase for authentication. Everything works, beside persisting the data. SignIn state is lost across restarts. setPersistence(auth, indexedDBLocalPersistence)
isn't doing anything. I checked with devtools, and only 'firebase-heartbeat-database' is being created, but not the 'firebaseLocalStorageDb' holding the auth data.
If that is not considered a bug, I appreciate any directions.
Steps and code to reproduce issue
const firebaseApp = getApps().length > 0 ? getApps()[0] : initializeApp(firebaseConfig);
const auth = getAuth(firebaseApp); // initializeAuth with multiple persistences also doesn't work
setPersistence(auth, indexedDBLocalPersistence); // other persistences like browserLocalPersistence, also do not take effect