Make the login persisten between reloads

This commit is contained in:
dtonon 2026-03-25 19:39:20 +01:00
parent cb67093ce0
commit 2f91fe8572
2 changed files with 16 additions and 0 deletions

View file

@ -5,6 +5,8 @@
import LeftSidebar from "$lib/components/LeftSidebar.svelte";
import ChatSidebar from "$lib/components/ChatSidebar.svelte";
import { page } from "$app/state";
import { onMount } from "svelte";
import { restoreSession } from "$lib/auth.svelte";
let { children } = $props();
@ -12,6 +14,8 @@
const mode: "simple" | "full" = "full";
const chatEnabled = true;
onMount(restoreSession);
let chatExpanded = $state(false);
const activeRoom = $derived(page.params.slug ?? "");