mod-portal-v2/app/pages/[...slug].vue
2026-08-02 00:16:30 +02:00

20 lines
No EOL
515 B
Vue

<script setup>
import { onMounted } from 'vue'
const { isAuthenticated, verifySession } = useAuth()
onMounted(async () => {
const valid = await verifySession()
if (!valid || !isAuthenticated.value) {
await navigateTo('/oauth', { replace: true })
} else {
await navigateTo('/', { replace: true })
}
})
</script>
<template>
<div style="display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #0d1117;">
<span class="spinner sm"></span>
</div>
</template>