@concord-consortium/object-storage 1.0.0-pre.8 → 1.0.0-pre.9
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.
|
@@ -27,9 +27,9 @@ class FirebaseObjectStorage {
|
|
|
27
27
|
async initialize() {
|
|
28
28
|
if (this.initialized)
|
|
29
29
|
return;
|
|
30
|
+
// force the SDK to use memory-only persistence to prevent conflicts between different frames/instances
|
|
31
|
+
await this.app.auth().setPersistence(app_1.default.auth.Auth.Persistence.NONE);
|
|
30
32
|
if (this.config.user.type === "authenticated") {
|
|
31
|
-
// ensure any previous auth state is cleared before signing in
|
|
32
|
-
await this.app.auth().signOut();
|
|
33
33
|
await this.app.auth().signInWithCustomToken(this.config.user.jwt);
|
|
34
34
|
}
|
|
35
35
|
this.initialized = true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@concord-consortium/object-storage",
|
|
3
|
-
"version": "1.0.0-pre.
|
|
3
|
+
"version": "1.0.0-pre.9",
|
|
4
4
|
"description": "A TypeScript library for object storage",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"test": "jest",
|
|
11
11
|
"test:watch": "jest --watch",
|
|
12
12
|
"test:coverage": "jest --coverage",
|
|
13
|
-
"prepare": "tsc",
|
|
14
13
|
"prepublishOnly": "npm run build"
|
|
15
14
|
},
|
|
16
15
|
"keywords": [
|