Skip to content

Commit 1d30dde

Browse files
author
splayfery
committed
update jwt token validity period
1 parent 2d17f76 commit 1d30dde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/de/splayfer/web_backend/authentication/JwtService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@Service
1111
public class JwtService {
1212
private final String secretKey = System.getenv("JWT_KEY"); // Secret for signing JWTs
13-
private final long expirationMs = 86400000; // Token validity (1 day)
13+
private final long expirationMs = 10800000; // Token validity (3 hours)
1414

1515
public String generateToken(String username) {
1616
return Jwts.builder()

0 commit comments

Comments
 (0)