Skip to content

Auth from shared keychain causing problems to connect to firestore #3185

@moopoints

Description

@moopoints

[REQUIRED] Step 2: Describe your environment

  • Xcode version: 10.2.1
  • Firebase SDK version: 6.2.0
  • Firebase Component: Core/Auth
  • Component version: 6.2.0

[REQUIRED] Step 3: Describe the problem

I implemented the newly added cross-app auth with share ios keychain following the instructions here (https://firebase.google.com/docs/auth/ios/single-sign-on). Initially auth as well as the usage of listeners and cloud functions are working just fine, but then after a while (both on the simulator as well as actual devices), the connection cannot be created anymore. It's unclear to me whether this is caused by using users from shared access groups or simply a recent update to the firebase sdk.

Steps to reproduce:

I have had a hard time to identify any correlating factors or immediate ways to reproduce this but will report back if I do. So far it looks like this is triggered by time (possibly auth tokens aren't renewing properly after an hour?). The error message is below. The error message appears even though the device/simulator definitely have internet connectivity. When this happens I still have access to the current user from Auth.

Restarting the app won't fix this. Only signing out entirely and signing back in allows for a connection to be made again. I am using only google auth in this case. The error message is this:

6.2.0 - [Firebase/Firestore][I-FST000001] Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: An internal error has occurred, print and inspect the error details for more information.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions