all repos — tabemono @ main

src/routes/(auth)/+page.svelte (view raw)

 1<script lang="ts">
 2	import { getProfile } from '$lib/solid';
 3	import type { PageData } from './$types';
 4
 5	let { data }: { data: PageData } = $props();
 6</script>
 7
 8{#await getProfile(data?.session?.webId + '/')}
 9	Récupération du profil...
10{:then profile}
11	<h2>{profile.name}</h2>
12	<h3>{profile.organization}</h3>
13	<img src={profile.image} alt="Profile" />
14{/await}
15
16<form method="GET" action="/solid/logout">
17	<button type="submit">Déconnexion</button>
18</form>