[Fix/#307] 방장 로그인 403에러시 새로 반환된 토큰 저장 #308
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.
🌀 해당 이슈 번호
🔹 어떤 것을 변경했나요?
🔹 어떻게 구현했나요?
기존 코드
방장 로그인 api호출시, 방장이 가능시간을 입력하지 않은 상태라면 403에러와 함께 새로운 토큰을 발급받게됩니다.
그런데 기존 코드에서, 가능시간 입력하러 가는 모달만 뜨고 새로운 토큰을 저장하는 로직은 없습니다.
변경 코드
따라서 localStorage에 토큰을 저장하는 로직을 추가하였습니다. (기존의 필요없는 console.log는 삭제)
🔹 PR 포인트를 알려주세요!
인증로직도 싹 점검.. 반드시 필요하겠습니다..^^
🔹 스크린샷을 남겨주세요!
2024-08-13.2.58.18.mov