20 lines
No EOL
515 B
Vue
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> |