Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/com/iemr/common/utils/CookieUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public void addJwtTokenToCookie(String Jwttoken, HttpServletResponse response, H
// Make the cookie HttpOnly to prevent JavaScript access for security
cookie.setHttpOnly(true);

// Set the Max-Age (expiry time) in seconds (1 day)
cookie.setMaxAge(60 * 60 * 24); // 1 day expiration
// Set the Max-Age (expiry time) in seconds (8 hours)
cookie.setMaxAge(60 * 60 * 8); // 8 hours expiration

// Set the path to "/" so the cookie is available across the entire application
cookie.setPath("/");
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ quality-Audit-PageSize=5
failedLoginAttempt=5

#Jwt Token configuration
jwt.access.expiration=86400000
jwt.access.expiration=28800000
jwt.refresh.expiration=604800000

# local env
Expand Down
Loading