Skip to content

Commit ea3937e

Browse files
committed
Feat: Extend token expiry duration
1h is too short for practical usage. This change extends the expiry duration to 12h to cover a full working day.
1 parent b2580d8 commit ea3937e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/services/authService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = {
109109
group: loginUser.group,
110110
status: loginUser.status,
111111
}, JWT_SECRET_KEY, {
112-
expiresIn: '1h',
112+
expiresIn: '12h',
113113
});
114114

115115
return user;

0 commit comments

Comments
 (0)