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

+1 -1
View File
@@ -4,7 +4,7 @@ import { error } from '@sveltejs/kit'
import { get } from 'svelte/store'
export async function load({ fetch, url }) {
const { jwt } = get(profile)
const { jwt } = profile.data
let page = Number(url.searchParams.get('page')) || 1
+1 -1
View File
@@ -14,7 +14,7 @@
let loading = $state(false)
async function deleteImage(image: LocalImage) {
if (!$profile?.jwt) return
if (!profile.data?.jwt) return
try {
loading = true