@thzero/library_client_firebase 0.16.9 → 0.16.11
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/package.json +4 -4
- package/service/index.js +5 -7
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thzero/library_client_firebase",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.11",
|
|
4
4
|
"version_major": 0,
|
|
5
5
|
"version_minor": 16,
|
|
6
|
-
"version_patch":
|
|
7
|
-
"version_date": "12/
|
|
6
|
+
"version_patch": 11,
|
|
7
|
+
"version_date": "12/19/2022",
|
|
8
8
|
"author": "thZero",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"firebase": "^9.
|
|
23
|
+
"firebase": "^9.15.0"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@thzero/library_client": "^0.16",
|
package/service/index.js
CHANGED
|
@@ -252,16 +252,14 @@ class FirebaseAuthService extends UserAuthService {
|
|
|
252
252
|
// this._lock = true
|
|
253
253
|
|
|
254
254
|
user = this._convert(correlationId, user);
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
if (!user)
|
|
255
|
+
if (!user) {
|
|
256
|
+
await this._serviceUser.setUser(correlationId, null);
|
|
257
|
+
await this._serviceUser.setLoggedIn(correlationId, false);
|
|
260
258
|
return;
|
|
259
|
+
}
|
|
261
260
|
|
|
262
261
|
await this.refreshToken(correlationId, user);
|
|
263
|
-
const
|
|
264
|
-
const response = await service.updateExternal(correlationId, user);
|
|
262
|
+
const response = await this._serviceUser.updateExternal(correlationId, user);
|
|
265
263
|
if (this._hasSucceeded(response)) {
|
|
266
264
|
await this._serviceUser.setUser(correlationId, response.results);
|
|
267
265
|
await this._serviceUser.setLoggedIn(correlationId, true);
|