diff --git a/src/helpers/jwt.helper.js b/src/helpers/jwt.helper.js index c775a0d..60dcbea 100644 --- a/src/helpers/jwt.helper.js +++ b/src/helpers/jwt.helper.js @@ -5,12 +5,12 @@ import { JWT_KEY } from "../config/config.js"; export function issueJWT(user, fields, opts) { const payload = { sub: user._id, - ...(fields || {}) + ...(fields || {}), }; return jwt.sign(payload, JWT_KEY, { - expiresIn: "14d", - ...(opts || {}) + expiresIn: "100d", + ...(opts || {}), }); } @@ -20,4 +20,4 @@ export function decodeJWT(jwtToken) { if (err) return; return decoded; }); -} \ No newline at end of file +}