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,
|
email: donors[0].email,
|
||||||
id: donors[0].id
|
id: donors[0].id
|
||||||
},
|
},
|
||||||
process.env.JWT_KEY,
|
process.env.JWT_KEY
|
||||||
{
|
|
||||||
expiresIn: '1h'
|
|
||||||
}
|
|
||||||
);
|
);
|
||||||
return res.status(200).json({
|
return res.status(200).json({
|
||||||
message: 'Auth successful',
|
message: 'Auth successful',
|
||||||
|
|||||||
Reference in New Issue
Block a user