@riocrypto/common-server 1.0.2802 → 1.0.2803

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.
@@ -35,6 +35,8 @@ interface AuthAttrs {
35
35
  emailVerificationAttempts?: number;
36
36
  securityAnswerAttempts?: number;
37
37
  securityAnswerLockedUntil?: Date;
38
+ authenticatorVerificationAttempts?: number;
39
+ authenticatorVerificationLockedUntil?: Date;
38
40
  authMethod?: AuthMethod;
39
41
  twoFactorConfigured?: boolean;
40
42
  twoFactorMethod?: string;
@@ -74,6 +76,8 @@ interface AuthDoc extends Document {
74
76
  emailVerificationAttempts?: number;
75
77
  securityAnswerAttempts?: number;
76
78
  securityAnswerLockedUntil?: Date;
79
+ authenticatorVerificationAttempts?: number;
80
+ authenticatorVerificationLockedUntil?: Date;
77
81
  authMethod?: AuthMethod;
78
82
  twoFactorConfigured?: boolean;
79
83
  twoFactorMethod?: string;
@@ -132,6 +132,13 @@ const buildAuth = (mongoose) => {
132
132
  securityAnswerLockedUntil: {
133
133
  type: Date,
134
134
  },
135
+ authenticatorVerificationAttempts: {
136
+ type: Number,
137
+ default: 0,
138
+ },
139
+ authenticatorVerificationLockedUntil: {
140
+ type: Date,
141
+ },
135
142
  authMethod: {
136
143
  type: String,
137
144
  },
@@ -160,6 +167,8 @@ const buildAuth = (mongoose) => {
160
167
  delete ret.emailVerificationAttempts;
161
168
  delete ret.securityAnswerAttempts;
162
169
  delete ret.securityAnswerLockedUntil;
170
+ delete ret.authenticatorVerificationAttempts;
171
+ delete ret.authenticatorVerificationLockedUntil;
163
172
  for (let apiKey of ret.apiKeys) {
164
173
  delete apiKey.value;
165
174
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.2802",
3
+ "version": "1.0.2803",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",