feat: switch to new account system

This commit is contained in:
Xyphyn committed 2023-08-01 13:00:06 -07:00
1 parent 54ab6fdc82
commit 2da415b670
38 files changed
+222 -362

No files matched your search

+2 -2
View File
@@ -2,11 +2,11 @@
import { goto } from '$app/navigation'
import PostForm from '$lib/components/lemmy/post/PostForm.svelte'
import Card from '$lib/components/ui/Card.svelte'
import { authData } from '$lib/lemmy.js'
import { profile } from '$lib/auth.js'
import { onMount } from 'svelte'
onMount(() => {
if (!$authData) {
if (!$profile?.jwt) {
goto('/login')
}
})