Closed as not planned
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Auth
Which platforms are affected?
iOS
Description
A user has reported that the app has crashed several times when returning to it after being authorized with X in the web tab. The unstable network condition could be somehow affected because the user has reported that a VPN is being used during the process.
Reproducing the issue
- Start the authentication flow with the
TwitterAuthProvider
. - Authorized, and returning the app.
- After a few seconds, the app crashes.
The pseudo code I was calling:
Future<void> _startAuth() async {
final provider = TwitterAuthProvider();
provider.setCustomParameters({
'scopes': 'users.read offline.access',
'lang': 'en',
});
final credential = await _$.signInWithProvider(provider);
final idToken = await credential.user?.getIdToken();
if (idToken == null) {
return;
}
// Making HTTP requests with `idToken`.
}
Firebase Core version
3.13.0
Flutter Version
3.27.4
Relevant Log Output
See the attached crash log.
Flutter dependencies
Expand Flutter dependencies
snippet
dependencies:
- firebase_auth 5.5.2
- firebase_core 3.13.0
transitive dependencies:
- firebase_auth_platform_interface 7.6.2
- firebase_core_platform_interface 5.4.0
Additional context and comments
Detailed information can be found in the log file.
Hardware Model: iPhone 14 (iPhone14,7)
OS Version: iPhone OS 16.7 (20H19)
Searched related issues:
- [firebase_auth]: Microsoft Federated identity sign-in not working with Firebase MFA enabled authentication credentials/user in iOS platform #16929
- 🐛 [cloud_firestore] FIRESTORE INTERNAL ASSERTION FAILED #6927
- 🐛 [firebase_core] Firebase crashes on iOS #5856
- 🐛 [firebase_dynamic_links] iOS app crashes when users click on the dynamic link #4882
- FIRESTORE INTERNAL ASSERTION FAILED: QueryComparator needs to have a key ordering. (expected has_key_ordering) firebase-ios-sdk#7672
- Crash: LevelDB not created for Firestore with large data set firebase-ios-sdk#4333