exposes exp in login

This commit is contained in:
James
2020-10-28 16:20:41 -04:00
parent 1702261a15
commit ec2cda20cf

View File

@@ -14,6 +14,7 @@ async function loginHandler(req, res, next) {
message: 'Auth Passed',
user: result.user,
token: result.token,
exp: result.exp,
});
} catch (error) {
return next(error);