Can't figure out how to use setPersistence #4670
-
I can't figure out to properly import persistence other then import type { User, Auth } from 'firebase/auth';
import { signInWithEmailAndPassword, onAuthStateChanged, setPersistence, signOut, inMemoryPersistence, browserLocalPersistence } from 'firebase/auth'; I'm using Snowpack and I'm getting this error
Obviously, I'm doing something wrong. How do we import the persistence |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Have you considered that there would be no importing. Based on this they are strings. What’s confusing is the sample showing Disclaimer: did not try. |
Beta Was this translation helpful? Give feedback.
-
I've switch to Vitejs and everything is working fine. I suspect that Snowpack doesn't use the |
Beta Was this translation helpful? Give feedback.
-
Firebase Modular Version V9
Namespaced Version V8 - Modular Version V9 - |
Beta Was this translation helpful? Give feedback.
I've switch to Vitejs and everything is working fine. I suspect that Snowpack doesn't use the
"browser"
main file of the package.json.