@entropic-bond/firebase-admin 1.1.3 → 1.1.4
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/lib/server-auth/firebase-server-auth.d.ts +1 -0
- package/lib/server-auth/firebase-server-auth.js +3 -0
- package/lib/server-auth/firebase-server-auth.js.map +1 -1
- package/lib/server-auth/firebase-server-auth.spec.js +1 -1
- package/lib/server-auth/firebase-server-auth.spec.js.map +1 -1
- package/package.json +5 -5
|
@@ -3,5 +3,6 @@ export declare class FirebaseServerAuth extends ServerAuthService {
|
|
|
3
3
|
getUser<T extends {}>(userId: string): Promise<UserCredentials<T>>;
|
|
4
4
|
setCustomCredentials(userId: string, customCredentials: CustomCredentials): Promise<void>;
|
|
5
5
|
updateUser<T extends {}>(userId: string, credentials: UserCredentials<T>): Promise<UserCredentials<T>>;
|
|
6
|
+
deleteUser(userId: string): Promise<void>;
|
|
6
7
|
private convertToUserCredentials;
|
|
7
8
|
}
|
|
@@ -35,6 +35,9 @@ class FirebaseServerAuth extends entropic_bond_1.ServerAuthService {
|
|
|
35
35
|
return this.convertToUserCredentials(yield firebase_admin_helper_1.FirebaseAdminHelper.instance.auth().updateUser(userId, credentials));
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
+
deleteUser(userId) {
|
|
39
|
+
return firebase_admin_helper_1.FirebaseAdminHelper.instance.auth().deleteUser(userId);
|
|
40
|
+
}
|
|
38
41
|
convertToUserCredentials(userData) {
|
|
39
42
|
return {
|
|
40
43
|
id: userData.uid,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase-server-auth.js","sourceRoot":"","sources":["../../src/server-auth/firebase-server-auth.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAqF;AAErF,oEAA8D;AAE9D,MAAa,kBAAmB,SAAQ,iCAAiB;IAElD,OAAO,CAAgB,MAAc;;YAC1C,IAAI;gBACH,OAAO,IAAI,CAAC,wBAAwB,CACnC,M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AO,EAAE;YAClE,SAAS,EAAE,IAAI,IAAI,CAAE,QAAQ,CAAC,QAAQ,CAAC,cAAc,CAAE,CAAC,OAAO,EAAE;YACjE,IAAI,EAAE,QAAQ,CAAC,WAAW;YAC1B,WAAW,EAAE,QAAQ,CAAC,WAAW;YACjC,UAAU,EAAE,QAAQ,CAAC,QAAQ;YAC7B,UAAU,EAAE,QAAQ,CAAC,YAAiB;SACtC,CAAA;IACF,CAAC;CACD;AAzCD,gDAyCC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const entropic_bond_1 = require("entropic-bond");
|
|
4
4
|
const firebase_admin_helper_1 = require("../firebase-admin-helper");
|
|
5
5
|
const firebase_server_auth_1 = require("./firebase-server-auth");
|
|
6
|
-
describe
|
|
6
|
+
describe('Firebase Server Auth', () => {
|
|
7
7
|
firebase_admin_helper_1.FirebaseAdminHelper.setFirebaseConfig({
|
|
8
8
|
projectId: "demo-test",
|
|
9
9
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase-server-auth.spec.js","sourceRoot":"","sources":["../../src/server-auth/firebase-server-auth.spec.ts"],"names":[],"mappings":";;AAAA,iDAA0C;AAC1C,oEAA8D;AAC9D,iEAA2D;AAE3D,QAAQ,
|
|
1
|
+
{"version":3,"file":"firebase-server-auth.spec.js","sourceRoot":"","sources":["../../src/server-auth/firebase-server-auth.spec.ts"],"names":[],"mappings":";;AAAA,iDAA0C;AAC1C,oEAA8D;AAC9D,iEAA2D;AAE3D,QAAQ,CAAE,sBAAsB,EAAE,GAAE,EAAE;IACrC,2CAAmB,CAAC,iBAAiB,CAAC;QACrC,SAAS,EAAE,WAAW;KACtB,CAAC,CAAA;IAEF,UAAU,CAAC,GAAE,EAAE;QACd,0BAAU,CAAC,oBAAoB,CAAE,IAAI,yCAAkB,EAAE,CAAE,CAAA;IAC5D,CAAC,CAAC,CAAA;IAEF,EAAE,CAAE,oCAAoC,EAAE,CAAE,IAAI,EAAE,EAAE;QACnD,MAAM,CAAC,UAAU,CAAE,CAAC,CAAE,CAAA;QACtB,MAAM,CACL,GAAE,EAAE,CAAC,0BAAU,CAAC,QAAQ,CAAC,OAAO,CAAE,sBAAsB,CAAE,CAAC,OAAO,CAAE,IAAI,CAAE,CAC1E,CAAC,GAAG,CAAC,OAAO,EAAE,CAAA;IAChB,CAAC,CAAC,CAAA;AACH,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@entropic-bond/firebase-admin",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"branches": [
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@semantic-release/changelog": "^6.0.1",
|
|
49
49
|
"@semantic-release/git": "^10.0.1",
|
|
50
|
-
"@types/jest": "^29.
|
|
50
|
+
"@types/jest": "^29.2.0",
|
|
51
51
|
"@types/node-fetch": "^3.0.3",
|
|
52
52
|
"git-branch-is": "^4.0.0",
|
|
53
53
|
"husky": "^8.0.1",
|
|
54
|
-
"jest": "^29.
|
|
54
|
+
"jest": "^29.2.0",
|
|
55
55
|
"node-fetch": "^2.6.1",
|
|
56
56
|
"semantic-release": "^19.0.5",
|
|
57
57
|
"ts-jest": "^29.0.3",
|
|
58
58
|
"typescript": "^4.8.4"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"entropic-bond": "^1.
|
|
62
|
-
"firebase-admin": "^11.
|
|
61
|
+
"entropic-bond": "^1.34.12",
|
|
62
|
+
"firebase-admin": "^11.2.0"
|
|
63
63
|
},
|
|
64
64
|
"husky": {
|
|
65
65
|
"hooks": {
|