From 59c327d8df1555320584be5865ce92ce4225667d Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Fri, 18 Jan 2019 21:24:30 -0800 Subject: [PATCH] taking out the jwt expiry as there is no integration with frontend --- app/controllers/auth.controller.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/controllers/auth.controller.js b/app/controllers/auth.controller.js index d45dfeb..fde83fc 100644 --- a/app/controllers/auth.controller.js +++ b/app/controllers/auth.controller.js @@ -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',