npm-pkg-hook 1.4.7 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  "rm": "rm -rf node_modules package-lock.json && npm i",
44
44
  "test": "echo \"Error: no test specified\" && exit 1"
45
45
  },
46
- "version": "1.4.7"
46
+ "version": "1.4.8"
47
47
  }
@@ -14,7 +14,13 @@ export const useLogout = ({ setAlertBox = () => { } } = {}) => {
14
14
  setLoading(true)
15
15
 
16
16
  // Logout from the server
17
- const logoutResponse = await window.fetch(`${process.env.URL_BASE}/api/auth/logout/`, {})
17
+ const logoutResponse = await window.fetch(`${process.env.URL_BASE}/api/auth/logout/`, {
18
+ method: 'POST',
19
+ headers: {
20
+ 'Content-Type': 'application/json'
21
+ },
22
+ credentials: 'include'
23
+ })
18
24
 
19
25
  if (!logoutResponse.ok) {
20
26
  setLoading(false)