-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
We just updated to firebase_auth: 5.2.0
and started seeing this error on app launch for iOS. Because of this every fresh app start does not load user session and loads as if there was never logged in user.
[[FirebaseAuth]] 11.0.0 - [FirebaseAuth][I-AUT000001] Error loading saved user when starting up: Error Domain=FIRAuthErrorDomain Code=17072 "The provided user's tenant ID does not match the Auth instance's tenant ID." UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_TENANT_ID_MISMATCH, NSLocalizedDescription=The provided user's tenant ID does not match the Auth instance's tenant ID.}
As I understand we could set the tennatID somewhere in the swift code for iOS but the problem is that we do not want it hardcoded.
We do have a backend that return as the tenantID after we get custom JWT from a custom auth provider.
Reproducing the issue
- Run the app using firebase_auth iOS SDK 11.0.0
- Login into the app.
- Kill the app.
- Launch app again.
- Observe user is logged out
Firebase Core version
3.4.0
Flutter Version
3.24.1
Relevant Log Output
[[FirebaseAuth]] 11.0.0 - [FirebaseAuth][I-AUT000001] Error loading saved user when starting up: Error Domain=FIRAuthErrorDomain Code=17072 "The provided user's tenant ID does not match the Auth instance's tenant ID." UserInfo={FIRAuthErrorUserInfoNameKey=ERROR_TENANT_ID_MISMATCH, NSLocalizedDescription=The provided user's tenant ID does not match the Auth instance's tenant ID.}
Flutter dependencies
No response
Additional context and comments
No response