We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab151b5 commit 2289661Copy full SHA for 2289661
middleware/auth.ts
@@ -1,4 +1,5 @@
1
import { storeToRefs } from "pinia";
2
+
3
import { useAuthStore } from "~/store/auth";
4
5
export default defineNuxtRouteMiddleware((to) => {
pages/logout.vue
@@ -53,4 +53,8 @@ const logout = async () => {
53
const cancelLogout = async () => {
54
await router.push("/");
55
};
56
57
+definePageMeta({
58
+ middleware: ["auth"],
59
+});
60
</script>
0 commit comments