<script setup lang="ts">
import { kcAuthen } from '@/plugins/keycloak'
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'

const route = useRoute()

onMounted(async () => {
  if (route.query.token && route.query.accessToken) {
    // console.log('query', route.query.token)
    // console.log('accessToken', route.query.accessToken)
    kcAuthen(route.query.token.toString(), route.query.accessToken.toString())
  }
})
</script>

<template>
  <div></div>
</template>
