Skip to content

Commit

Permalink
Merge branch 'Dongwook'
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-Dongwook committed Sep 25, 2023
2 parents b23d333 + 41200f1 commit 997a708
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 997a708

Please sign in to comment.