简体   繁体   中英

Is (firebase 9) initializeApp() necessary for email login?

Related:

Firebase initializeApp(config); fun

Does an app need to call intializeApp() for gmail login?

The docs mention that, "yes", a config object needs to be passed to initializeApp() , yet, functionally, login and db reads can be done outside the firebase sdk (user login).

Is there any workaround where the config is not used (I don't have access to it at)?

Calling initializeApp tells the SDK what Firebase project to connect to on the servers. So: yes, you need to call initializeApp before you can call the SDK method to sign in with email/password.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM