feat: use state based auth instead of store based (#488)

* misc: switch to state for auth

* fix: class based auth not working
This commit is contained in:
Xylight authored and GitHub committed 2025-02-08 13:49:09 -08:00
1 parent 8c6ff77fac
commit 5651ad475d
83 files changed
+395 -469

No files matched your search

@@ -22,7 +22,7 @@
let loading = $state(false)
async function sendMessage() {
if (!$profile?.jwt || message == '') return
if (!profile.data?.jwt || message == '') return
loading = true
@@ -50,7 +50,7 @@
</script>
<Modal bind:open>
{#snippet title()}
{#snippet customTitle()}
<h1 class="text-2xl font-bold">Message</h1>
{/snippet}
<form onsubmit={preventDefault(sendMessage)} class="flex flex-col gap-4">