How to persist a Firebase web SDK login in custom storage library?

I have an Electron app, And in Electron’s rendering process it has
it’s storage like (localStorage, sessionStorage), I also have a simple extension to install when the my Electron application starts.

The problem I have to log in again in this extension in order to meet my needs, because I assume that Electron has a different (localStorage, sessionStorage) for the installed extensions.

Is there a way to make Firebase persist the login state in custom storage like electron-store? So I don’t need to log in again in the extension rendering process as well.