🐛 Fix auth callback

This commit is contained in:
2025-10-06 21:29:44 +08:00
parent 367db215cf
commit b14af9675c
2 changed files with 5 additions and 4 deletions

View File

@@ -13,18 +13,19 @@
<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..."
title: "Redirecting"
})
definePageMeta({
layout: "minimal"
})
await navigateTo(redirectUrl, { external: true })
onMounted(() => {
const redirectUrl = `${apiBase}/id/auth/callback/${provider}${window.location.search}`
window.location.href = redirectUrl
})
</script>