feat(frontend): Added functionality to the frontend to log in.

This commit is contained in:
Gerald Schmittinger 2025-03-02 16:33:50 +01:00
parent 4a1edbb6ff
commit a28ec22f29
20 changed files with 395 additions and 33 deletions

View file

@ -1,10 +1,15 @@
<script setup lang="ts">
import {isLoggedIn, authState} from "@/store/auth-store.ts";
</script>
<template>
<main>
<b> Welcome to the dwengo homepage</b>
<!-- TODO Placeholder implementation to test the login - replace by a more beautiful page later -->
<b>Welcome to the dwengo homepage</b>
<div v-if="isLoggedIn">
<p>Hello {{authState.user?.profile.name}}!</p>
<p>Your access token for the backend is: <code>{{authState.user?.access_token}}</code></p>
</div>
</main>
</template>
<style scoped>