Skip to content
Snippets Groups Projects

Vuetify

Merged Andrej Ramašeuski requested to merge vuetify into main
6 files
+ 755
25
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 0
19
<script setup lang="ts">
const { $keycloak } = useNuxtApp();
const login = () => {
$keycloak.login()
}
const logout = () => {
$keycloak.logout({ redirectUri: location.origin + "/" });
}
</script>
<template>
<div>
<button @click="logout" v-if="$keycloak.authenticated">Logout</button>
<button @click="login" v-else>Login</button>
</div>
</template>
Loading