[React] JWT를 이용한 로그인 유지
jwt (json wep token)해당 로그인 방식은 로그인 시 access_token 과 refresh_token을 발급해서로그인의 여부를 체크하는 방식입니다ex)해당 유저의 data를 받아오거나 보낼 때 access_token을 헤더에 같이 붙여서 보냅니다. const getCategoryList = () => { axios.get(`url, data , { headers:{ Authorization : `Bearer ${localStorage.getItem('access_token')}` } }) .then(res => { // 성공시 console.log("success") }).catch(error => { // 실패 시 ..