Updated the Session.ts model
This commit is contained in:
parent
e2f92c39d6
commit
badd8d35fb
@ -5,7 +5,8 @@ interface ISession {
|
|||||||
id: ObjectId,
|
id: ObjectId,
|
||||||
userId: ObjectId,
|
userId: ObjectId,
|
||||||
token: string,
|
token: string,
|
||||||
userAgent: string
|
userAgent: string,
|
||||||
|
verified: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const SessionSchema = new Schema<ISession>({
|
const SessionSchema = new Schema<ISession>({
|
||||||
@ -17,7 +18,11 @@ const SessionSchema = new Schema<ISession>({
|
|||||||
type: String,
|
type: String,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
userAgent: String
|
userAgent: String,
|
||||||
|
verified: {
|
||||||
|
type: Boolean,
|
||||||
|
required: true
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
SessionSchema.plugin(encrypt, {
|
SessionSchema.plugin(encrypt, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user