authentication done
This commit is contained in:
18
src/layout/AppProfileMenu.vue
Normal file
18
src/layout/AppProfileMenu.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user