Files
apollo-fe/src/layout/AppProfileMenu.vue
2024-08-08 13:17:22 +05:30

18 lines
500 B
Vue

<script setup>
import { ref } from 'vue';
import { useAuth } from '@websanova/vue-auth/src/v3.js';
const auth = useAuth();
</script>
<template>
<div class="config-panel hidden">
<div class="config-panel-content">
<span class="config-panel-label">Welcome </span>
{{ auth.user().name + " " + auth.user().surname }}
<button @click="auth.logout()" class="p-button p-button-danger p-button-outlined">Logout</button>
</div>
</div>
</template>