feat(frontend): Added functionality to the frontend to log in.
This commit is contained in:
parent
4a1edbb6ff
commit
a28ec22f29
20 changed files with 395 additions and 33 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue