fix: amm-1931 JWT token reduced expiry timing#311
Conversation
WalkthroughJWT token expiration times are reduced from 24 hours to 8 hours across two configuration locations: the cookie Max-Age in CookieUtil.java and the access token lifetime in application.properties. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-02-03T12:41:59.244ZApplied to files:
📚 Learning: 2025-02-21T07:43:03.828ZApplied to files:
📚 Learning: 2025-02-21T07:42:36.497ZApplied to files:
🔇 Additional comments (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
@coderabbitai |
|
@snehar-nd, I'll review the changes in this PR right away. This appears to be a security configuration update to reduce JWT token expiry from 1 day to 8 hours. ✅ Actions performedReview triggered.
|



📋 Description
JIRA ID: AMM-1931
✅ Type of Change
ℹ️ Additional Information
Before the expiry time has set to 1 day
jwt.access.expiration=86400000
cookie.setMaxAge(60 * 60 * 24); // 1 day expiration
Changes made:
Expiry time has been set to 8 hours.
#Jwt Token configuration
jwt.access.expiration=28800000
cookie.setMaxAge(60 * 60 * 8); // 8 hours expiration
Summary by CodeRabbit