- authFetch uses redirect:'manual' to detect 302 from Authentik - If session expired (302/401/opaqueredirect), reload page to trigger Traefik forwardAuth → Authentik re-login flow - Logout redirects to Authentik invalidation flow - App.vue calls checkSession on mount to populate user identity Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
212 B
Vue
12 lines
212 B
Vue
<template>
|
|
<router-view />
|
|
</template>
|
|
|
|
<script setup>
|
|
import { onMounted } from 'vue'
|
|
import { useAuthStore } from 'src/stores/auth'
|
|
|
|
const auth = useAuthStore()
|
|
onMounted(() => auth.checkSession())
|
|
</script>
|