diff --git a/src/models/Session.ts b/src/models/Session.ts index 63b0061..e88b030 100644 --- a/src/models/Session.ts +++ b/src/models/Session.ts @@ -5,7 +5,8 @@ interface ISession { id: ObjectId, userId: ObjectId, token: string, - userAgent: string + userAgent: string, + verified: boolean } const SessionSchema = new Schema({ @@ -17,7 +18,11 @@ const SessionSchema = new Schema({ type: String, required: true }, - userAgent: String + userAgent: String, + verified: { + type: Boolean, + required: true + } }); SessionSchema.plugin(encrypt, {