@riocrypto/common-server 1.0.1374 → 1.0.1376
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/build/models/auth.d.ts +8 -2
- package/build/models/auth.js +8 -3
- package/package.json +2 -2
package/build/models/auth.d.ts
CHANGED
|
@@ -8,7 +8,10 @@ interface AuthAttrs {
|
|
|
8
8
|
previousPasswords?: string[];
|
|
9
9
|
apiKeys?: APIKey[];
|
|
10
10
|
isDisabled?: boolean;
|
|
11
|
-
|
|
11
|
+
authenticator?: {
|
|
12
|
+
secret?: string;
|
|
13
|
+
verified?: boolean;
|
|
14
|
+
};
|
|
12
15
|
telegram?: {
|
|
13
16
|
username?: string;
|
|
14
17
|
lastVerified?: Date;
|
|
@@ -22,7 +25,10 @@ interface AuthDoc extends Document {
|
|
|
22
25
|
previousPasswords?: string[];
|
|
23
26
|
apiKeys?: APIKey[];
|
|
24
27
|
isDisabled?: boolean;
|
|
25
|
-
|
|
28
|
+
authenticator?: {
|
|
29
|
+
secret?: string;
|
|
30
|
+
verified?: boolean;
|
|
31
|
+
};
|
|
26
32
|
telegram?: {
|
|
27
33
|
username?: string;
|
|
28
34
|
lastVerified?: Date;
|
package/build/models/auth.js
CHANGED
|
@@ -47,8 +47,13 @@ const buildAuth = (mongoose) => {
|
|
|
47
47
|
type: String,
|
|
48
48
|
},
|
|
49
49
|
],
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
authenticator: {
|
|
51
|
+
secret: {
|
|
52
|
+
type: String,
|
|
53
|
+
},
|
|
54
|
+
verified: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
},
|
|
52
57
|
},
|
|
53
58
|
apiKeys: [
|
|
54
59
|
{
|
|
@@ -74,7 +79,7 @@ const buildAuth = (mongoose) => {
|
|
|
74
79
|
delete ret.password;
|
|
75
80
|
delete ret.securityAnswer;
|
|
76
81
|
delete ret.previousPasswords;
|
|
77
|
-
delete ret.
|
|
82
|
+
delete ret.authenticator.secret;
|
|
78
83
|
for (let apiKey of ret.apiKeys) {
|
|
79
84
|
delete apiKey.value;
|
|
80
85
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riocrypto/common-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1376",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@everapi/currencyapi-js": "^1.0.6",
|
|
28
28
|
"@google-cloud/storage": "^6.9.5",
|
|
29
29
|
"@google-cloud/vision": "^4.0.2",
|
|
30
|
-
"@riocrypto/common": "^1.0.
|
|
30
|
+
"@riocrypto/common": "^1.0.1206",
|
|
31
31
|
"@types/express": "^4.17.13",
|
|
32
32
|
"axios": "^0.27.2",
|
|
33
33
|
"ccxt": "^3.0.30",
|