taking out the jwt expiry as there is no integration with frontend

This commit is contained in:
Arjun Patel
2019-01-18 21:24:30 -08:00
parent b0597a99e2
commit 59c327d8df
+1 -4
View File
@@ -26,10 +26,7 @@ exports.login = (req, res, next) => {
email: donors[0].email,
id: donors[0].id
},
process.env.JWT_KEY,
{
expiresIn: '1h'
}
process.env.JWT_KEY
);
return res.status(200).json({
message: 'Auth successful',