@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.
- package/README.md +64 -3
- package/dist/browser.js +3 -2
- package/dist/browser.js.map +1 -1
- package/dist/browser.umd.js +3 -2
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +21 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/browser.umd.js
CHANGED
|
@@ -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
|
-
|
|
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,
|