major: Migration from better-auth to keycloak

This commit is contained in:
2025-10-28 10:40:38 +01:00
parent e5e063bbde
commit 36364a7977
77 changed files with 1444 additions and 2930 deletions

View File

@@ -60,13 +60,14 @@ const colors = [
]
const neutrals = ['slate', 'gray', 'zinc', 'neutral', 'stone']
const { user: betterAuthUser, signOut } = await useAuth()
const userStore = useUserStore()
const { user: keyCloakUser } = storeToRefs(userStore)
const user = ref({
name: betterAuthUser.value?.name,
name: keyCloakUser.value.name,
avatar: {
src: '/_nuxt/public/favicon.ico',
alt: betterAuthUser.value?.name
alt: keyCloakUser.value.name
}
})
@@ -178,7 +179,7 @@ const items = computed<DropdownMenuItem[][]>(() => [
icon: 'i-lucide-log-out',
async onSelect(e: Event) {
e.preventDefault()
await signOut({ redirectTo: '/' })
await navigateTo('/auth/logout', { external: true })
}
}
]