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.
redis를 활용하여 로그인시 refresh 토큰을 레디스에 저장해뒀음
key 값은 유저 이메일 value는 토큰 값
이후 유저의 액세스 토큰이 만료되고 리프레쉬 토큰을 기반으로 토큰을 재발급 받으려 할 때
redis에서 refresh 토큰이 존재하는지 확인 후
refresh 토큰이 존재한다면
프론트에서 보내온 refresh 토큰과 redis에 저장된 refresh 토큰이 일치하는지 확인
확인 후 일치한다면
redis에 새로운 refresh 토큰을 저장 후
새로운 액세스 토큰과 리프레쉬 토큰을 발급하여 프론트에 반환해줌.
#13