chore(frontend): Refactoring

Refactoring zodat de structuur van de authenticatieservice in de client duidelijker is.
This commit is contained in:
Gerald Schmittinger 2025-03-02 21:02:17 +01:00
parent a28ec22f29
commit 26d5c09bb4
19 changed files with 215 additions and 183 deletions

View file

@ -1,24 +0,0 @@
<script setup lang="ts">
import {useRouter} from "vue-router";
import {onMounted} from "vue";
import {handleLoginCallback} from "@/store/auth-store.ts";
const router = useRouter();
onMounted(async () => {
try {
await handleLoginCallback();
await router.replace("/"); // Redirect to home (or dashboard)
} catch (error) {
console.error("OIDC callback error:", error);
}
});
</script>
<template>
<p>Logging you in...</p>
</template>
<style scoped>
</style>