Added refresh tokens

This commit is contained in:
Johnathon Slightham
2021-06-11 12:03:50 -04:00
parent fdb447a9ee
commit 531a4d632b
6 changed files with 51 additions and 3 deletions

View File

@@ -11,6 +11,9 @@ let Session = new Schema({
},
date: {
type: Date
},
type: {
type: Number // 0 for sessionID, 1 for refresh token
}
}, {
collection: 'sessions'