picker-db 5.0.1 → 5.0.2

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.
@@ -331,6 +331,17 @@ module.exports = (connection) => {
331
331
  dashboardInviteTokenDate: {
332
332
  type: Date,
333
333
  },
334
+ twoFactorEnabled: { type: Boolean, default: false },
335
+ twoFactorSetupCompleted: { type: Boolean, default: false },
336
+ twoFactorSecret: { type: String },
337
+ twoFactorIV: { type: String },
338
+ twoFactorAuthTag: { type: String },
339
+ lastUsedTOTPTimestamp: { type: Number, default: null },
340
+ twoFactorBackupCodes: [{
341
+ hash: { type: String },
342
+ used: { type: Boolean, default: false },
343
+ }],
344
+ twoFactorGraceDeadline: { type: Date, default: null },
334
345
  }, { timestamps: true });
335
346
 
336
347
  return UserSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "picker-db",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "Picker DB services",
5
5
  "main": "index.js",
6
6
  "scripts": {