Conversation
리프레쉬 토큰 추가 로직
[Release] merge to main
[Release] merge develop to main
⚡ refresh토큰 한달로
Summary of ChangesHello @hiwon-lee, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 PR은 ExhibitionReview DTO에 게시글의 삭제 상태를 나타내는 필드를 추가하여 데이터 표현을 개선하고, 사용자 경험 향상을 위해 리프레시 토큰의 유효 기간을 14일에서 30일로 연장하는 변경 사항을 포함합니다. 이는 사용자 로그인 세션 유지 시간을 늘려 재로그인 필요성을 줄이는 데 기여합니다. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
| .content(post.getContent()) | ||
| .isWriter(isWriter) | ||
| .images(images) | ||
| .isDeleted(post.isDeleted()) |
| .sameSite(cookieSameSite) | ||
| .path("/") | ||
| .maxAge(2 * 60 * 60) | ||
| .maxAge(30L * 24 * 60 * 60) |
There was a problem hiding this comment.
| // 14일 | ||
| private final long REFRESH_TOKEN_VALIDITY_MS = 2 * 60 * 60 * 1000L; | ||
| // 14일 -> 30일 | ||
| private final long REFRESH_TOKEN_VALIDITY_MS = 30L * 24 * 60 * 60 * 1000L; |
There was a problem hiding this comment.
Refresh 토큰의 유효 기간을 밀리초 단위로 계산하는 로직이 하드코딩되어 있습니다. 30L * 24 * 60 * 60 * 1000L과 같은 계산식은 가독성이 떨어지고 의도를 파악하기 어렵습니다. java.util.concurrent.TimeUnit을 사용하면 코드를 더 명확하고 안전하게 만들 수 있습니다.
| private final long REFRESH_TOKEN_VALIDITY_MS = 30L * 24 * 60 * 60 * 1000L; | |
| private final long REFRESH_TOKEN_VALIDITY_MS = java.util.concurrent.TimeUnit.DAYS.toMillis(30L); |
#️⃣ 연관된 이슈
#️⃣ 작업 내용
#️⃣ 테스트 결과
#️⃣ 변경 사항 체크리스트
#️⃣ 스크린샷 (선택)
#️⃣ 리뷰 요구사항 (선택)
📎 참고 자료 (선택)