-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auth 회원가입 및 로그인 기능 구현 #16
base: develop
Are you sure you want to change the base?
Conversation
Member 참조 -> member_id로 표현
엇 spotless 주석 처리된 걸로 올라가버렸네요,, |
|
||
private String password; | ||
private String refresh; | ||
private String expiration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
토큰 만료시간 같은데 LocalDateTime 이런걸로 안해도 되나요?
(진짜 모름)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
덕분에 찾아봤는데, 보통 Long이나 String을 추천한다고 하네용
Auth auth = Auth.builder() | ||
.member(member) | ||
.password(bCryptPasswordEncoder.encode(joinDto.password())) | ||
.role("ROLE_USER") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
혹시 이건 어떤 role 인가요? 일반 회원과 운영진인가여
그리고 enum 으로 따로 관리하면 어떨까요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
네, 일반 유저와 관리자입니다.
enum으로 바꿀게요.
refresh token 발급 기능 추가 후, 다시 올릴 예정입니다 |
No description provided.