Skip to content

Conversation

@seoaaa
Copy link
Collaborator

@seoaaa seoaaa commented May 27, 2025

☝️Issue Number

📌 개요

-Redis – Refresh Token 관리
-Open API

🔁 변경 사항

📸 스크린샷

👀 기타 더 이야기해볼 점

  • 구현은 한거 같은데 제대로 한건지 잘 모르겠어요,,
  • 카카오 소셜로그인 구현, open api를 실행하려고 하면 application.yml에서 키를 못찾았다고 오류가 뜨는데 어떻게 해결해야 하나요..?

@seoaaa seoaaa self-assigned this May 27, 2025
@seoaaa seoaaa added the ✨feature 기능 개발 관련 레이블 label May 27, 2025
Copy link
Member

@wlaud2000 wlaud2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

구현은 잘 해주신것 같은데 yml에서 키를 못찾았다고 오류가 뜨는건 이따가 한번 같이 봐야할 것 같습니다! 고생하셨습니다!

@GetMapping("/air/seoul")
public ResponseEntity<AirKoreaResponse> getSeoulAir() {
AirKoreaResponse result = airKoreaService.getAirQuality("서울");
return ResponseEntity.ok(result);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

응답 통일 클래스를 사용해주세요


import java.util.List;

@Data
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Data 어노테이션의 사용을 지양해주세요!
참고자료 -
https://velog.io/@penrose_15/Data%EC%97%90-%EB%8C%80%ED%95%9C-%EA%B3%A0%EC%B0%B0

Comment on lines +33 to +34
// RefreshToken 저장 (DB에 갱신)
tokenRepository.save(new Token(member.getEmail(), refreshToken));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refresh Token을 Redis에 저장하고있는데 RDB에 또 저장 할 필요는 없어보입니다!

host: localhost
port: 6379
airkorea:
service-key: gC3iWj2EfzQMMLVRORT5ecvxJ370Y/4gR8N3A9miRKeMJi0SiYNqLTVyVesGQqGIREPBEB3m3CbL5TroUDTiHA==
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yml을 github에 공개 시 api key를 공개하는건 위험합니다 환경변수로 설정해주시거나 gitignore 처리 해주세요!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨feature 기능 개발 관련 레이블

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants