-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [firebase_auth] verifyBeforeUpdateEmail causes exception on Firebase Emulator #5244
Comments
Hi @kaboc
(from https://firebase.google.com/docs/emulator-suite/connect_auth#emulated_email_email_link_and_anonymous_authentication) |
@markusaksli-nc |
Oh sorry I misread the issue somehow. I'm seeing this as well.
flutter doctor -v[√] Flutter (Channel master, 2.1.0-11.0.pre.165, on Microsoft Windows [Version 10.0.19041.804], locale et-EE)
• Flutter version 2.1.0-11.0.pre.165 at C:\Development\flutter_master
• Framework revision 698d438960 (5 hours ago), 2021-03-09 07:53:21 +0100
• Engine revision 2441c476a6
• Dart version 2.13.0 (build 2.13.0-116.0.dev)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at C:\Users\marku\AppData\Local\Android\sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7042882\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.7.7)
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
• Visual Studio Community 2019 version 16.7.30621.155
• Windows 10 SDK version 10.0.18362.0
[√] Android Studio (version 4.1.0)
• Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\201.7042882
• Flutter plugin version 54.0.1
• Dart plugin version 201.9335
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
[√] IntelliJ IDEA Ultimate Edition (version 2020.3)
• IntelliJ at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\203.7148.57
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
[√] Connected device (5 available)
• SM G950F (mobile) • ce12171c51cc001c03 • android-arm64 • Android 9 (API 28)
• sdk gphone x86 arm (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19041.804]
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.190
• Edge (web) • edge • web-javascript • Microsoft Edge 89.0.774.45
• No issues found! CC @mikehardy although maybe this shouldn't work? The documentation doesn't explicitly mention changing email being supported with the same method. |
I regret not being able to chase this more, but as these features should be identical (essentially) between react-native-firebase and flutterfire, I can refer to how we exercise the APIs in react-native-firebase during E2E testing (which is done against the auth emulator in react-native-firebase, but not in flutterfire yet)
Those are the files + line numbers into the e2e tests for the auth package so you can scan to see if your use case is being exercised by that near-identical-twin project with success or not. Could be we are missing cases in react-native-firebase though coverage is pretty thorough, definitely is the case flutterfire is not exercising itself against the emulator during E2E testing as I have not ported this file for the E2E-host-to-auth-emulator interaction yet and you need that to get the OOB codes etc during test |
I've confirmed this as a problem with the auth emulator (at least it works without using the emulator). RNFB also receives the same error, the integration tests for I've had a comb through the android sdk for the error code but it isn't there so it must be coming from the server (emulator) itself: android error:
ios error:
|
Closing as this is an auth emulator issue that should be tracked here: firebase/firebase-tools#3424 |
Bug report
The following error message is shown in the console of IDE when
verifyBeforeUpdateEmail()
is used with the Firebase Auth emulator.Steps to reproduce
Steps to reproduce the behavior:
verifyBeforeUpdateEmail()
Expected behavior
I'm not really sure what should happen with the auth emulator, but guessing from
sendEmailVerification()
that is similar toverifyBeforeUpdateEmail()
, a verification URL should probably be shown in the console running the emulator.Additional context
I experienced this with Flutter 1.22.6 & firebase_auth 0.20.1, and it was reproduced in Flutter 2.0.1 & firebase_auth 1.0.0.
The exception only occurs with the emulator. With the cloud backend, a verification email arrives in my inbox.
The project itself has not been migrated to null safety, but most dependencies are up-to-date. (Code generation outputs a lot of errors, so freezed and json_serializable have been kept outdated.)
Flutter doctor
Click To Expand
Flutter dependencies
Click To Expand
The text was updated successfully, but these errors were encountered: