NCBACK-27 fix token life
Test Workflow / test (push) Successful in 3s

This commit is contained in:
vladp
2026-01-10 02:09:39 +07:00
parent 3e06040123
commit 2b7a8b97e1
3 changed files with 9 additions and 8 deletions
@@ -92,6 +92,7 @@ public class AuthService {
AuthToken authToken = authTokenRepository.findByToken(token)
.orElseThrow(() -> new NotFoundAuthToken("Token not found"));
authToken.setLastUsedAt(LocalDateTime.now());
authToken.setExpiresAt(LocalDateTime.now().plusHours(1));
authTokenRepository.save(authToken);