<script lang="ts">
	import type {PageData} from './$types';
	export let data: PageData;
</script>

{#if data.user}
	<h1>Success!</h1>
	<p>You are {data.user.name} and your ID is {data.user.id}</p>
{:else}
	<h1>Hello</h1>
	<p>I do not know you</p>
	<p>please <a href="/auth/discord">try again</a></p>
{/if}
