authentication done

This commit is contained in:
sumedh
2024-08-08 13:17:22 +05:30
parent 4c54153dc8
commit 71dadac7ce
7 changed files with 175 additions and 85 deletions

View 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>