Skip to content

Commit

Permalink
hotfix(logout)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-Dongwook committed Sep 25, 2023
1 parent cd9b7a1 commit 41200f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion client/src/components/Navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
}
Expand Down

0 comments on commit 41200f1

Please sign in to comment.