Skip to content

[FirebaseAuth] issue on persisting user session with multi tenant project on 11.0.0 #13565

Closed
@KestasVenslauskas

Description

@KestasVenslauskas

Description

Forwarding issue from flutter firebase/flutterfire#13251

The issue is that when we launch the app using SDK version 11.0.0 it does not load user session from previous app launch.
We get this weird error:

[[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.}

Our native code only contains FirebaseApp.configure()

Reproducing the issue

  1. Launch the app (with a multitenant project).
  2. Login into the app.
  3. Kill the app.
  4. Launch the app again.

Firebase SDK Version

11.0.0

Xcode Version

Installation Method

Swift Package Manager

Firebase Product(s)

Authentication

Targeted Platforms

iOS

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.}

If using Swift Package Manager, the project's Package.resolved

No response

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
-- TBA

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions