@seaverse/data-service-sdk 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4257,8 +4257,9 @@
4257
4257
  // Sign in with custom token
4258
4258
  const auth = getAuth(app);
4259
4259
  await signInWithCustomToken(auth, tokenResponse.custom_token);
4260
- // Get Firestore instance
4261
- const db = getFirestore(app);
4260
+ // Get Firestore instance with correct database ID
4261
+ // IMPORTANT: Must specify database_id, not just use default!
4262
+ const db = getFirestore(app, tokenResponse.database_id);
4262
4263
  return {
4263
4264
  app,
4264
4265
  auth,