From 41200f1c6045e9d2c45a2f1723b576972c6dac8a Mon Sep 17 00:00:00 2001 From: Lee-Dongwook Date: Mon, 25 Sep 2023 22:09:03 +0900 Subject: [PATCH] hotfix(logout) --- client/src/components/Navbar/Navbar.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/src/components/Navbar/Navbar.js b/client/src/components/Navbar/Navbar.js index e28f2c27..286506cb 100644 --- a/client/src/components/Navbar/Navbar.js +++ b/client/src/components/Navbar/Navbar.js @@ -106,8 +106,13 @@ function NavBar() { function logout() { if(token !== null){ + + const postToData = { + token: token + } + axios - .post("http://localhost:8080/api/members/logout",token,{ + .post("http://localhost:8080/api/members/logout", postToData, { headers:{ 'Authorization': `Bearer ${token}` }