Closed changheedev closed 3 years ago
Close #158
토큰을 검증할때 socialId, socialType도 같이 검사하도록 변경하여 같은 uid를 가진 유저로 로그인 되던 이슈를 해결했습니다.
토큰 관련 환경변수가 변경되었습니다. (.dummy.env 파일 참조)
JWT_COOKIE_EXPIRES_IN 환경변수가 삭제되었습니다. JWT_TOKEN_EXPIRES_IN = 86400 로 설정해주세요. (1d)
JWT_TOKEN_EXPIRES_IN = 86400
토큰을 재발급 하는 기준값을 설정하는 JWT_REFERSH_THRESHOLD 환경변수가 추가되었습니다. JWT_REFERSH_THRESHOLD = 14400 로 설정해주세요. (4h)
JWT_REFERSH_THRESHOLD = 14400
JwtUtil에서 config를 주입받을 수 있도록 구조가 변경되었습니다.
인증 미들웨어의 테스트 코드를 추가했습니다.
UserDTO의 디렉토리가 domain/auth/type -> domain/user/type으로 변경되었습니다.
domain/auth/type
domain/user/type
@boostcamp-2020/accountbook_mentor
Issue Number
Close #158
변경사항
토큰을 검증할때 socialId, socialType도 같이 검사하도록 변경하여 같은 uid를 가진 유저로 로그인 되던 이슈를 해결했습니다.
토큰 관련 환경변수가 변경되었습니다. (.dummy.env 파일 참조)
JWT_COOKIE_EXPIRES_IN 환경변수가 삭제되었습니다.
JWT_TOKEN_EXPIRES_IN = 86400
로 설정해주세요. (1d)토큰을 재발급 하는 기준값을 설정하는 JWT_REFERSH_THRESHOLD 환경변수가 추가되었습니다.
JWT_REFERSH_THRESHOLD = 14400
로 설정해주세요. (4h)JwtUtil에서 config를 주입받을 수 있도록 구조가 변경되었습니다.
인증 미들웨어의 테스트 코드를 추가했습니다.
UserDTO의 디렉토리가
domain/auth/type
->domain/user/type
으로 변경되었습니다.작업 유형
체크리스트
@boostcamp-2020/accountbook_mentor