@brightnkhoma/auth 1.0.2 → 1.0.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signIn.d.ts","sourceRoot":"","sources":["../../../src/authentication/aggregates/signIn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAA;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,qBAAa,MAAO,SAAQ,UAAU;IACtB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAlC,YAA6B,KAAK,EAAG,MAAM,EAE1C;IACD,SAAS,
|
|
1
|
+
{"version":3,"file":"signIn.d.ts","sourceRoot":"","sources":["../../../src/authentication/aggregates/signIn.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,EAAC,OAAO,EAAC,QAAQ,EAAC,MAAM,SAAS,CAAA;AAExC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,qBAAa,MAAO,SAAQ,UAAU;IACtB,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAlC,YAA6B,KAAK,EAAG,MAAM,EAE1C;IACD,SAAS,WAMR;IACK,iBAAiB,mBAYtB;IACK,OAAO,mBAEZ;IAGD,MAAM,CAAC,QAAQ,UACY,OAAO,OAAQ,QAAQ,mBAcjD;IACD,MAAM,CAAC,EAAE,UACkB,OAAO,OAAQ,QAAQ,mBAUjD;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signUp.d.ts","sourceRoot":"","sources":["../../../src/authentication/aggregates/signUp.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;AAC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EK,UAAU,mBAQf;IAEK,MAAM,mBAKX;IAGK,SAAS,qBAMd;IAEK,OAAO,mBAMZ;IAGD,MAAM,CAAC,QAAQ,UACY,OAAO,OAAQ,QAAQ,mBAiBjD;IACD,MAAM,CAAC,SAAS,UACW,OAAO,OAAQ,QAAQ,mBAgBjD;CAWJ"}
|
package/dist/index.js
CHANGED
|
@@ -4023,8 +4023,10 @@ var SignIn = class _SignIn extends UserDomain {
|
|
|
4023
4023
|
}
|
|
4024
4024
|
token;
|
|
4025
4025
|
getSecret() {
|
|
4026
|
-
const
|
|
4027
|
-
if (!
|
|
4026
|
+
const cred = (0, import_credentials.getDB)();
|
|
4027
|
+
if (!cred) throw new Error("Auth server Error");
|
|
4028
|
+
const secret = cred.jwtSecret;
|
|
4029
|
+
if (!secret) throw new Error("Server token auth error");
|
|
4028
4030
|
return secret;
|
|
4029
4031
|
}
|
|
4030
4032
|
async verifyUserIdToken() {
|
|
@@ -4118,8 +4120,10 @@ var SignUp = class _SignUp extends UserDomain {
|
|
|
4118
4120
|
this.otp = import_crypto.default.randomInt(1e5, 1e6).toString();
|
|
4119
4121
|
}
|
|
4120
4122
|
getSecret() {
|
|
4121
|
-
const
|
|
4122
|
-
if (!
|
|
4123
|
+
const cred = (0, import_credentials3.getDB)();
|
|
4124
|
+
if (!cred) throw new Error("Auth server Error");
|
|
4125
|
+
const secret = cred.jwtSecret;
|
|
4126
|
+
if (!secret) throw new Error("Server token auth error");
|
|
4123
4127
|
return secret;
|
|
4124
4128
|
}
|
|
4125
4129
|
signjwt(otp) {
|
package/dist/index.mjs
CHANGED
|
@@ -4012,8 +4012,10 @@ var SignIn = class _SignIn extends UserDomain {
|
|
|
4012
4012
|
}
|
|
4013
4013
|
token;
|
|
4014
4014
|
getSecret() {
|
|
4015
|
-
const
|
|
4016
|
-
if (!
|
|
4015
|
+
const cred = getDB();
|
|
4016
|
+
if (!cred) throw new Error("Auth server Error");
|
|
4017
|
+
const secret = cred.jwtSecret;
|
|
4018
|
+
if (!secret) throw new Error("Server token auth error");
|
|
4017
4019
|
return secret;
|
|
4018
4020
|
}
|
|
4019
4021
|
async verifyUserIdToken() {
|
|
@@ -4107,8 +4109,10 @@ var SignUp = class _SignUp extends UserDomain {
|
|
|
4107
4109
|
this.otp = crypto.randomInt(1e5, 1e6).toString();
|
|
4108
4110
|
}
|
|
4109
4111
|
getSecret() {
|
|
4110
|
-
const
|
|
4111
|
-
if (!
|
|
4112
|
+
const cred = getDB3();
|
|
4113
|
+
if (!cred) throw new Error("Auth server Error");
|
|
4114
|
+
const secret = cred.jwtSecret;
|
|
4115
|
+
if (!secret) throw new Error("Server token auth error");
|
|
4112
4116
|
return secret;
|
|
4113
4117
|
}
|
|
4114
4118
|
signjwt(otp) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightnkhoma/auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "A module that automates CRUD functionality and routing and helps you follow DDD(Domain Driven Design) with ease using firebase, express and typescript",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -39,9 +39,7 @@
|
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"@brightnkhoma/credentials": "1.0.2",
|
|
41
41
|
"express": "^5.2.1",
|
|
42
|
-
"nodemailer": "^10.0.12"
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
42
|
+
"nodemailer": "^10.0.12",
|
|
45
43
|
"@brightnkhoma/domain": "^1.0.5"
|
|
46
44
|
}
|
|
47
45
|
}
|