taking out the jwt expiry as there is no integration with frontend
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user