[feat] User, Auth 도메인의 테스트코드를 작성한다. #45
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.
✅ PR 유형
어떤 변경 사항이 있었나요?
📝 작업 내용
이번 PR에서 작업한 내용을 간략히 설명해주세요(이미지 첨부 가능)
생각해보면 당연한 것이긴 한데 쿠키를 이용한 api는 당연히 실제 브라우저의 쿠키를 이용하는 게 당연한 거 같아요.
스웨거에서 jwt 토큰 같은 거 필요하면 당연히 개발자도구 브라우저에 있는 쿠키에서 빼서 쓰는게 맞고,
토큰 재발행 이런 거에서도 쿠키의 리프레시 토큰 빼서 쓰고 성공하면 쿠키에 어세스토큰, 리프레시토큰 업데이트 자동으로 되는 것처럼요.
파라미터 쿠키 있는 거에는 아무 값이나 넣어도 되는데 사실상 클라이언트측에서 이 api는 토큰이 필요한 api구나라는 것을 알게해주기 위해 이렇게 하였습니다. 이게 없으면 머가 필요한지 클라이언트측에서 알 수가 없을 거 같아서!
(그래서 클라이언트측에 미리 이렇게 있으면 토큰이 필요한 api이기때문에 쿠키에 토큰값을 직접 넣어달라고 말해주는 게 나을 것 같아요! )
✏️ 관련 이슈
본인이 작업한 내용이 어떤 Issue Number와 관련이 있는지만 작성해주세요
ex)
🎸 기타 사항 or 추가 코멘트