Skip to content

Commit

Permalink
Delete conscriboId display from /dashboard/index
Browse files Browse the repository at this point in the history
  • Loading branch information
siard-y committed Aug 10, 2024
1 parent 4d5a3a4 commit d27db24
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/pages/dashboard/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<v-responsive class="align-center mx-auto" max-width="800">
<h1 class="text-h3 mb-6">User Dashboard</h1>
<p class="text-body-1">
Logged in as {{ user.displayName }}: {{ conscriboId }}
Ingelogd als {{ user.displayName }}
</p>
<v-row justify="center" class="mt-6">
<v-col cols="auto">
Expand All @@ -15,7 +15,6 @@
</template>

<script setup lang="ts">
import { onMounted, ref} from "vue";
import { useRouter } from 'vue-router';
import { useCurrentUser, useFirebaseAuth } from 'vuefire';
import { definePage } from "unplugin-vue-router/runtime";
Expand All @@ -28,15 +27,6 @@ const auth = useFirebaseAuth();
const user = useCurrentUser();
const router = useRouter();
const conscriboId = ref(null);
onMounted(async () => {
if (user.value) {
const result = await user.value.getIdTokenResult()
conscriboId.value = result.claims.conscriboId
}
})
const logout = () => {
auth.signOut().then(() => {
console.log('logged out');
Expand Down

0 comments on commit d27db24

Please sign in to comment.