fix, refactor: token refresh api 데코레이터 수정 및 refresh guard 추가 #55
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.
작업한 내용
token 재발급 api에서 @auth() 데코레이터를 사용하기 때문에 만료되면 요청이 안 보내질 수 있는 거 발견해서 수정했습니다.
추가로 userId가 필요했어서 refresh 가드를 생성해뒀습니다.
프론트에서 계속 401 에러 얘기하셔서 혼동되시지 않도록 가드에서 처리한 후에 메시지(만료 및 적절하지 않은 토큰임)를 추가했습니다.
데브랭크 보면서 많이 참고했습니다,,