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

@@ -32,7 +32,7 @@
)
async function upload() {
if (!$profile?.jwt || image == null) return
if (!profile.data?.jwt || image == null) return
progress = 0
@@ -40,7 +40,7 @@
const uploaded = (
await Promise.all(
Array.from(image).map((i) =>
uploadImage(i, $profile.instance, $profile.jwt!)
uploadImage(i, profile.data.instance, profile.data.jwt!)
.then((uploaded) => {
progress += 1 / (image?.length ?? 0)
return uploaded