Add parseInt to token expiration

This commit is contained in:
Tuan Dang
2022-12-09 10:10:38 -05:00
parent a8dfcae777
commit 3d25baa319
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ const tokenSchema = new Schema<IToken>({
}, },
createdAt: { createdAt: {
type: Date, type: Date,
expires: EMAIL_TOKEN_LIFETIME, expires: parseInt(EMAIL_TOKEN_LIFETIME),
default: Date.now default: Date.now
} }
}); });