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

@@ -27,7 +27,7 @@
let reviewing = $state(false)
async function review(approve: boolean) {
if (!$profile?.jwt) return
if (!profile.data?.jwt) return
let registrationApplicationAnswer: ApproveRegistrationApplication = {
approve: approve,
@@ -61,7 +61,7 @@
type: 'success',
})
application.creator_local_user.accepted_application = approve
application.admin = $profile.user!.local_user_view.person
application.admin = profile.data.user!.local_user_view.person
application.registration_application.deny_reason = denyReason
$notifications.applications -= 1