프론트엔드 로그인 유지에 대한 정책 #279
Closed
hozzijeong
started this conversation in
개발 논의
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
안건
로그인 유지를 상태를 어떻게 알려줄 것인가? 그리고 유효한 세션이 아닌 경우에 어떤 방식으로 처리할 것인가?
members/me
를 호출하여 그 상태를 체크할 것이다.members/me
를 우선적으로 선언한 뒤, 올바르지 못하다면login
페이지로 redirect 시킨다members/me
API 생성members/me
를 호출 할 것. 그리고 각 API의throwOnError
옵션을true
로 할 것.members/me
가 401인 경우에 '로그인' 문장을, 그게 아니라면 '마이페이지' 문장을 나타낼 것Beta Was this translation helpful? Give feedback.
All reactions