This repository has no description
454 B
22 lines
1<script lang="ts">
2 import { setContext, untrack } from "svelte";
3 import type { Snippet } from "svelte";
4 import { AUTH_KEY, createAuth } from "$lib/auth.svelte";
5
6 interface Props {
7 initial?: { did: string; handle: string } | null;
8 children: Snippet;
9 }
10
11 let { initial = null, children }: Props = $props();
12
13 setContext(
14 AUTH_KEY,
15 createAuth(
16 "https://bobbin.example.test",
17 untrack(() => initial)
18 )
19 );
20</script>
21
22{@render children()}