Files
FloatingIsland/app/pages/auth/callback/[provider].vue
2025-10-06 13:06:09 +08:00

31 lines
806 B
Vue

<template>
<div class="d-flex align-center justify-center fill-height">
<v-card class="pa-6 text-center" max-width="400">
<v-card-text>
<v-progress-circular indeterminate color="primary" class="mb-4" />
<h2 class="text-xl font-bold">Redirecting...</h2>
<p class="opacity-80">Please wait while we redirect you.</p>
</v-card-text>
</v-card>
</div>
</template>
<script lang="ts" setup>
const route = useRoute()
const provider = route.params.provider as string
const query = route.fullPath.split('?')[1] || ''
const apiBase = useSolarNetworkUrl()
const redirectUrl = `${apiBase}/id/auth/callback/${provider}?${query}`
useHead({
title: "Redirecting..."
})
definePageMeta({
layout: "minimal"
})
await navigateTo(redirectUrl, { external: true })
</script>