question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "The current environment does not support the specified persistence type." is shown when StyledAuthComponent is used in electron app

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
bojeil-googlecommented, May 17, 2018

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.

1reaction
bojeil-googlecommented, May 17, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found