mirror of
https://github.com/kevin-DL/breeze-next-template.git
synced 2026-01-11 10:24:29 +00:00
Update auth.js
This commit is contained in:
@@ -92,7 +92,7 @@ export const useAuth = ({ middleware, redirectIfAuthenticated } = {}) => {
|
||||
if (! error) {
|
||||
await axios
|
||||
.post('/logout')
|
||||
.then(() => mutate())
|
||||
.then(() => mutate())
|
||||
}
|
||||
|
||||
window.location.pathname = '/login'
|
||||
|
||||
Reference in New Issue
Block a user