Error "The current environment does not support the specified persistence type." is shown when StyledAuthComponent is used in electron app
See original GitHub issueI am trying to use StyledAuthComponent in an electron app.
The error
M {code: "auth/unsupported-persistence-type", message: "The current environment does not support the specified persistence type."}
is shown.
I have created a project to reproduce the error. The following steps can be used to reproduce the error
git clone https://github.com/iaaflaafc/react-firebaseui-error.git
cd react-firebaseui-error/
npm install
npm run dev
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:9 (4 by maintainers)
Top Results From Across the Web
The current environment does not support the specified ...
Only none persistence is supported in a node.js environment (it is the default setting). The reason for this is because when Firebase Auth ......
Read more >How could I handle auth persistence in a React+Electron app ...
I get an error: The current environment does not support the specified persistence type.
Read more >electron-store - npm
Simple data persistence for your Electron app or module - Save and load user preferences, app state, cache, etc. Latest version: 8.1.0, ...
Read more >Writing Firebase Apps on Windows, Mac, and Linux Using ...
Electron -Firebase does not integrate Firebase any further than the ... use Electron IPC to convey the user's authentication context back to ...
Read more >Easy Persistent Storage w/ Electron - Storing User Preferences.
Learn how to have persistent data storage easily with Electron and NodeJS.We will use this package for a practical example of storing the ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Electron is not currently officially supported by Firebase Auth. It is currently treated as a node.js server environment. In node.js server environment, only in memory persistence is supported.
Hmm, not sure why this is happening. For now, you don’t have to set it explicitly. The default and only available behavior should apply. Will try to look into this when I have time to setup an electronjs app.