After deleting and reinitializing (same name) a non-default Firebase App, authentication methods (e.g., signInWithEmailAndPassword) fail with a "A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred" error.
Login works again when you refresh the page.
I tried with different and same FirebaseOptions parameter. Since it works in the first attempt, it doesn't make sense to blame the issue on the FirebaseOptions, since they're the same in the second attempt (after deleting and reinitializing).
Expected behavior
Authentication methods should work correctly after deleting and reinitializing a Firebase app, with the same or different parameters, as it is a new app.
Actual behavior
Authentication methods fail with a network AuthError after deleting and reinitializing the app. A page refresh is required to restore normal functionality.
Reproducing the issue
Steps to reproduce the behavior:
Initialize a non-default Firebase App using Firebase.initializeApp(name: name, options: options);
Is there an existing issue for this?
Which plugins are affected?
Auth
Which platforms are affected?
Web
Description
Describe the bug
After deleting and reinitializing (same name) a non-default Firebase App, authentication methods (e.g.,
signInWithEmailAndPassword
) fail with a"A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred"
error. Login works again when you refresh the page. I tried with different and same FirebaseOptions parameter. Since it works in the first attempt, it doesn't make sense to blame the issue on the FirebaseOptions, since they're the same in the second attempt (after deleting and reinitializing).Expected behavior
Authentication methods should work correctly after deleting and reinitializing a Firebase app, with the same or different parameters, as it is a new app.
Actual behavior
Authentication methods fail with a network AuthError after deleting and reinitializing the app. A page refresh is required to restore normal functionality.
Reproducing the issue
Steps to reproduce the behavior:
Firebase.initializeApp(name: name, options: options);
Where
firebaseInstance
is obtained from:await Firebase.app(name).delete();
Firebase Core version
3.3.0
Flutter Version
3.24.1
Relevant Log Output
Flutter dependencies
No response
Additional context and comments
Tried with normal renderer + wasm, both have the same issue.