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

@@ -114,7 +114,7 @@
onMount(async () => {
if (
!(data.post.post_view.read && settings.markPostsAsRead) &&
$profile?.jwt
profile.data?.jwt
) {
getClient().markPostAsRead({
read: settings.markPostsAsRead,
@@ -237,12 +237,12 @@
<span class="text-primary-900 dark:text-primary-100 font-bold">
{$t('routes.post.remoteView')}
</span>
{#if $profile?.jwt}
{#if profile.data?.jwt}
<Button
class="ml-auto"
onclick={() => {
if ($profile?.jwt) {
fetchOnHome($profile?.jwt)
if (profile.data?.jwt) {
fetchOnHome(profile.data?.jwt)
}
}}
>