We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 274e160 + 82904d1 commit 2a95b1aCopy full SHA for 2a95b1a
src/jwt.config.js
@@ -3,7 +3,7 @@ import jwt from "jsonwebtoken";
3
const JWT_SECRET = process.env.JWT_SECRET;
4
5
export const signJwt = (payload) =>
6
- jwt.sign(payload, JWT_SECRET, { expiresIn: "10m" });
+ jwt.sign(payload, JWT_SECRET, { expiresIn: "1d" });
7
8
export const verifyJwt = (token) =>
9
jwt.verify(token, JWT_SECRET);
0 commit comments