Skip to content

Commit ab3a7d2

Browse files
author
App Generator
committed
Fix Logout issue - Flask API
1 parent b064e6b commit ab3a7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/api/auth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class AuthApi {
1010
};
1111

1212
static Logout = (data) => {
13-
return axios.post(`${base}/logout`, data);
13+
return axios.post(`${base}/logout`, data, { headers: { Authorization: `${data.token}` } });
1414
};
1515
}
1616

0 commit comments

Comments
 (0)