Skip to content

[FE] jwt 토큰 유무 체크하여 로그인 페이지 또는 이슈 목록 페이지 렌더링하기 #75

@deprecated-hongbiii

Description

@deprecated-hongbiii

로직은 다음과 같습니다.

  • / 접속한다.

  • 토큰 유무를 체크한다.

    • 토큰이 있으면 history.push(/issues)
    • 토큰이 없으면 login 페이지를 렌더링
  • 요청을 보낼 때마다 localStorage.getItem 하니까 토큰이 없으면 바로 login 페이지로 보내줄 수 있음

Metadata

Metadata

Labels

FE프론트엔드 라벨feature기능

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions