From 627f48504e494a87b2ab6c104a455589b4fd0746 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 4 Apr 2022 10:10:27 -0500 Subject: [PATCH] Update auth.js --- src/hooks/auth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/auth.js b/src/hooks/auth.js index 7354a65..1b34a6a 100644 --- a/src/hooks/auth.js +++ b/src/hooks/auth.js @@ -92,7 +92,7 @@ export const useAuth = ({ middleware, redirectIfAuthenticated } = {}) => { if (! error) { await axios .post('/logout') - .then(() => mutate()) + .then(() => mutate()) } window.location.pathname = '/login'