[박세은] 로그인 리팩토링 과제 제출 #10
Open
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.
🛠️ Motivation
react-router-dom을 사용해 Protect router 로직을 구현했습니다.🔑 Key Changes
react-router-dom을 활용한 Formpage 접근 제한단순 조건식만을 사용해 /form 경로 진입을 막았던 코드를 보완했습니다.
(로그인 안하고 경로에 /form 추가해 이동해도 접근 되는 문제 해결)
Feat: Protect Router 기능 추가
🐛버그 발생
유효하지 않은 accessToken을 사용해도 로그인 가능
🚀 Future Implementation Plans
로그인 중이 아니라면 → HomePage의 로그아웃 버튼 숨기기
🙏🏼 To Reviewers
아직 리팩토링을 덜했....😶🌫️ 좀 더 해서 수정할게여...