현재 로그인은 되어있어서
@GetMapping("/api/mypage")
public ResponseEntity<?> getUserInfo(Authentication auth){
System.out.println(auth);
return ResponseEntity.status(200).body(auth);
}
서버에서는 이렇게 보내주고
useEffect(()=>{
axios.get("http://localhost:8080/api/mypage")
.then((result)=>{
console.log(result)
}).catch((e)=>{
console.log(`유저 정보를 불러오면서 오류남 ${e}`)
})
},[])
마이페이지에서는 이렇게 데이터를 받아오고있는데 data에 아무것도 적혀있지 않는데 힌트 좀 부탁드립니다 ㅠㅠ
