frontend: Login-Redirect for unauth requests

This commit is contained in:
Frank Agerholm 2026-01-25 17:58:04 +01:00
commit c8b6e4757f
No known key found for this signature in database
4 changed files with 62 additions and 27 deletions

View file

@ -1,4 +1,9 @@
<script setup lang="ts">
definePageMeta({
requiresAuth: true
})
import { ref, onMounted } from "vue"
const { loadToken } = useAuth()