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