This commit is contained in:
2026-02-28 01:35:16 +01:00
parent 4bf80ae9a6
commit c433cb588a

View File

@@ -66,7 +66,7 @@ public class JwtRequestFilter extends OncePerRequestFilter {
String sessionId = jwtTokenProvider.getSessionId(jwt); String sessionId = jwtTokenProvider.getSessionId(jwt);
if (emailOpt.isPresent() && userIdOpt.isPresent()) { if (emailOpt.isPresent() && userIdOpt.isPresent()) {
// Check session validity // // Check session validity
Optional<String> activeSessionId = refreshTokenService.getSessionIdByEmail(emailOpt.get()); Optional<String> activeSessionId = refreshTokenService.getSessionIdByEmail(emailOpt.get());
// if (activeSessionId.isEmpty() || !activeSessionId.get().equals(sessionId)) { // if (activeSessionId.isEmpty() || !activeSessionId.get().equals(sessionId)) {
// sendErrorResponse(response, HttpStatus.UNAUTHORIZED, "SESSION_INVALIDATED"); // sendErrorResponse(response, HttpStatus.UNAUTHORIZED, "SESSION_INVALIDATED");