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:
1 parent
8c6ff77fac
commit
5651ad475d
83 files changed
+395
-469
No files matched your search
@@ -136,7 +136,7 @@
|
||||
<div transition:slide={{ axis: 'y', easing: expoOut }} class="max-w-sm">
|
||||
<ObjectAutocomplete
|
||||
label={$t('nav.create.community')}
|
||||
jwt={$profile?.jwt}
|
||||
jwt={profile.data?.jwt}
|
||||
listing_type={'All'}
|
||||
showWhenEmpty={true}
|
||||
onselect={(c) =>
|
||||
|
||||
@@ -57,7 +57,7 @@ export async function load({ url, fetch }) {
|
||||
query: query,
|
||||
results: everything,
|
||||
streamed: {
|
||||
object: get(profile)?.jwt
|
||||
object: profile.data?.jwt
|
||||
? getClient(undefined, fetch).resolveObject({
|
||||
q: query,
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user