JWT auth token expiresIn option removed

This commit is contained in:
Moon Patel
2023-07-02 19:07:35 +05:30
parent 490bd539fe
commit dd5f3069d0
+1 -1
View File
@@ -10,7 +10,7 @@ async function generatePasswordHash(password) {
}
function createJSONToken(email) {
return sign({ email }, KEY, { expiresIn: "1h" });
return sign({ email }, KEY);
}
function validateJSONToken(token) {