Replies: 1 comment 6 replies
-
I think you might have misread the message. it's actually
Yes, and you are correct that some modules implicitly depends on Auth. For example, The order of initialization doesn't matter in the old SDK because In the new Auth SDK, we allow developers to pick which persistence implementations (and their fallback order) and redirect resolver implementations to use using initializeAuth(). This allows you to reduce bundle size by not including things you don't need. As a result, The alternative, as you mentioned, is to let developers pass an auth object to
We didn't choose it because we think it offers a worse dev experience
|
Beta Was this translation helpful? Give feedback.
-
I got this in browser:
The culprit was this line:
By reordering the line I can make the error go away:
I'd like to open a discussion about this. In my opinion,
a) the error message is misleading - there are not necessarily more than one Firebase
appSDK involved.b) Is it really necessary, code-wise, to need to have
getAuth
before the others?If this really, really, is the case, and presuming every app in the universe needs the auth handle for something, how about returning it already from
initializeApp
? HavinggetAuth
makes sense if it is conceptually on the same level with the otherget...
functions.The new modular API states making things explicit as one of the design goals. Here, there are clearly some implicit underpinnings with the module system (other modules implicitly dependencing on auth). Can these be made explicit?
Firebase 0.900.15
Beta Was this translation helpful? Give feedback.
All reactions