Skip to content

feat: 로그인 정보 및 토큰 상태 관리 #64

@DandelionQZ

Description

@DandelionQZ

어떤 기능인가요?

추가하려는 기능 또는 개선하려는 부분에 대해 간결하게 설명해주세요.

로그인시에 유저 정보를 전역으로 관리하고, access token이 만료되었을 때 refresh Api를 호출하여 로그인 상태를 유지하거나 로그인 화면으로 리디렉션하는 등을 구현하려고 합니다.



작업 상세

  • 구글 소셜 로그인 idToken을 secure store에서 관리
  • 로그인 성공시
    • response로 받은 유저 정보를 authStore를 통해 전역에서 관리
    • access token과 refresh token은 secure store에서 관리
  • 불러온 유저 정보를 메인 홈에서 필요한 곳에서 호출
  • access token 만료시
    • refresh token으로 로그인 상태 연장
    • 로그인 상태 연장 실패시 유저 스토어와 secure store 비우기
  • 로그아웃시
    • 유저 정보를 담은 스토어와 secure store 비우기



참고자료

관련 문서, 스크린샷, 또는 예시 등이 있다면 여기에 첨부해주세요.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions