diff --git a/examples/auth-routes/middleware/auth.js b/examples/auth-routes/middleware/auth.js index 2aeeafef6b..fa4b73b642 100644 --- a/examples/auth-routes/middleware/auth.js +++ b/examples/auth-routes/middleware/auth.js @@ -1,7 +1,5 @@ -export default function ({ store, redirect, error }) { - // If user not connected, redirect to / +export default function ({ store, error }) { if (!store.state.authUser) { - // return redirect('/') error({ message: 'You are not connected', statusCode: 403 diff --git a/examples/auth-routes/pages/secret.vue b/examples/auth-routes/pages/secret.vue index c04a37363c..30dff34b4e 100644 --- a/examples/auth-routes/pages/secret.vue +++ b/examples/auth-routes/pages/secret.vue @@ -1,7 +1,7 @@