- Changed the version of "better-auth" to use a catalog reference in package.json and bun.lock for better dependency management. - Removed unnecessary comments and cleaned up the code in various files to enhance readability and maintainability. - Updated the authentication handling in hooks.server.ts to ensure proper token retrieval. - Simplified the layout and structure of Svelte components for improved clarity and performance.
17 lines
405 B
Svelte
17 lines
405 B
Svelte
<script lang="ts">
|
|
import "../app.css";
|
|
import Sidebar from "$lib/components/Sidebar.svelte";
|
|
import { createSvelteAuthClient } from "@mmailaender/convex-better-auth-svelte/svelte";
|
|
import { authClient } from "$lib/auth";
|
|
|
|
const { children } = $props();
|
|
|
|
createSvelteAuthClient({ authClient });
|
|
</script>
|
|
|
|
<div>
|
|
<div class="flex">
|
|
<Sidebar>{@render children()}</Sidebar>
|
|
</div>
|
|
</div>
|