-
Apollo client cache 값을 이용한 로그인처리React,JS,TS 2020. 12. 28. 00:04
Auth 로그인을 성공하면 LOCAL_LOGIN 의 매개변수로 token 값을 넘겨준다.
graphql auth mutation의 logUserIn의 매개변수로 받아온 토큰값을 전달
client resolvers 인 logUserIn의 토근값을 빼온 후
토큰 값이 있으면 true
Router true의 따른 Router 페이지 전환
'React,JS,TS' 카테고리의 다른 글
React infinite scroll (0) 2021.01.02 React notistackt (0) 2020.12.27 Styled-Component props 값 전달 (0) 2020.08.04 Styled-Component / Styled-reset (0) 2020.08.04 Arrow function (0) 2020.08.03