<script setup lang="ts">
const { query } = useRoute()
onMounted(async () => {
const { login } = useClientState()
await login(query as any)
await nextTick()
location.pathname = '/'
})
</script>
<template>
<div>
Login...
</div>
</template>