mirror of
https://github.com/kevin-DL/breeze-next-template.git
synced 2026-01-11 18:34:27 +00:00
Update auth.js
This commit is contained in:
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user