From 7fdaea73c5c67565202e19d6182fc215427919c3 Mon Sep 17 00:00:00 2001
From: memdmp <memdmp@estrogen.zone>
Date: Tue, 19 Aug 2025 20:40:19 +0000
Subject: feat: oidc attempt 1

---
 src/routes/+page.svelte | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 src/routes/+page.svelte

(limited to 'src/routes/+page.svelte')

diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
new file mode 100644
index 0000000..2634622
--- /dev/null
+++ b/src/routes/+page.svelte
@@ -0,0 +1,26 @@
+<script>
+  import { page } from '$app/state';
+  let s = $derived(page.data.session);
+</script>
+
+{@debug s}
+
+<h1>SvelteKit Auth Example</h1>
+<div>
+  {#if page.data.session}
+    {#if page.data.session.user?.image}
+      <img
+        src={page.data.session.user.image}
+        class="avatar"
+        alt="User Avatar"
+      />
+    {/if}
+    <span>
+      <small>Signed in as</small><br />
+      <strong>{page.data.session.user?.name ?? 'User'}</strong>
+    </span>
+    <!-- <div slot="submitButton" class="buttonPrimary">Sign out</div> -->
+  {:else}
+    <span class="notSignedInText">You are not signed in</span>
+  {/if}
+</div>
-- 
cgit v1.2.3

