Update auth.js

This commit is contained in:
Taylor Otwell
2022-04-04 10:10:27 -05:00
committed by GitHub
parent 345c927ada
commit 627f48504e

View File

@@ -92,7 +92,7 @@ export const useAuth = ({ middleware, redirectIfAuthenticated } = {}) => {
if (! error) { if (! error) {
await axios await axios
.post('/logout') .post('/logout')
.then(() => mutate()) .then(() => mutate())
} }
window.location.pathname = '/login' window.location.pathname = '/login'