[alpha][auth] TypeError: provider.isInitialized is not a function #4492
-
Environment I'm trying to initialize the auth object with the default app and its giving me a strange error. Not sure why. Here is a basic reproduction: import { initializeApp, getApps, getApp } from 'firebase/app'
import { signOut, getAuth } from 'firebase/auth'
const config = require('../config.json')
if (!getApps().length) {
initializeApp(config)
}
async myFunction(){
const app = getApp()
console.log(app) // This works
const auth = getAuth(app) // This line has the error
await signOut(auth)
}
myFunction() From the error it seems like it wants a Auth provider, but the documentation for getAuth only has the app as an argument. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Thanks for reporting! This is a recent regression. Right now install the library with the specific version
We're working on a new release to fix this so hang tight. |
Beta Was this translation helpful? Give feedback.
Thanks for reporting! This is a recent regression. Right now install the library with the specific version
0.900.12
.We're working on a new release to fix this so hang tight.