Feat: 연동 테스트용 임시 jwt생성 로직 구현 #35
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
📚 배경
현재 jwt를 발급받기 위해서는 반드시 Oauth를 거쳐야하기 때문에, 프론트와의 원할한 연동 테스트를 위해 임시 jwt 생성기가 필요하다.
📝 작업 내용
📸 스크린샷
💬 리뷰 요구사항
입력한 email과 nickname에 기반하여 만약 이미 존재하는 유저의 경우 nickname필드를 무시하고 email에 해당하는 유저의 accessToken과 refreshToken을 발급합니다.
만약, 존재하지 않는 유저의 경우 입력받은 두 필드를 기반으로 유저를 생성하여 두 토큰을 발급합니다.
✏ Git Close
close #34