Skip to content

Electron - auth data not persistent: firebase-heartbeat-database created, but not firebaseLocalStorageDb #8858

Open
@peacemaker123456

Description

@peacemaker123456

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triagenewA new issue that hasn't be categoirzed as question, bug or feature requestquestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions