Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWT와 web storage로 로그인 기능을 구현합니다. #144

Merged
merged 4 commits into from
Sep 23, 2023

Conversation

ludacirs
Copy link
Collaborator

📌 이슈 링크


📖 작업 배경

  • 로그인 기능 구현

🛠️ 구현 내용

  • local/session storage 관리를 위해 WebStorage 클래스 구현
  • 로그인 여부와 데이터를 관리하기 위한 커스텀 훅 구현
  • 토큰을 axios를 헤더에 담아주는 authInterceptor 구현

local, session storage 관리를 위한 클래스 구현
storage에 토큰이 있다면 자동으로 토큰을 넣는 interceptor 구현
로그인 유/무, 현재 로그인 유저의 정보를 가져오는 커스텀 훅 구현
@ludacirs ludacirs merged commit c50fcc0 into pagers-org:team6/ludacirs Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant