<script setup lang="ts">
import { onMounted } from 'vue';
import { useUserStore } from './store/user.store';
const userStore = useUserStore();

onMounted(() => {
  if (userStore.accessToken && !userStore.isLoggedIn) {
    userStore.loginFromToken();
  }
})
</script>

<template>
  <router-view></router-view>
</template>

<style scoped>
</style>
