@@ -120,21 +118,92 @@
{/snippet}
-
- {#if !$USER_DATA}
-
-
- {#snippet child()}
-
- {/snippet}
-
-
- {/if}
+
+ {#if $USER_DATA}
+
+
+
+
+
+ {#snippet child({ props })}
+
+ {/snippet}
+
+
+
+
+
+
+ {/if}
diff --git a/website/src/lib/components/self/SignInConfirmDialog.svelte b/website/src/lib/components/self/SignInConfirmDialog.svelte
index 7c07a9d..56ee8bd 100644
--- a/website/src/lib/components/self/SignInConfirmDialog.svelte
+++ b/website/src/lib/components/self/SignInConfirmDialog.svelte
@@ -7,17 +7,25 @@
DialogDescription
} from '$lib/components/ui/dialog';
import { Button } from '$lib/components/ui/button';
+ import { signIn } from '$lib/auth-client';
+ import { page } from '$app/state';
- let { open = $bindable(false), onConfirm } = $props<{
+ async function onConfirm() {
+ await signIn.social({
+ provider: 'google',
+ callbackURL: `${page.url.pathname}?signIn=1`
+ });
+ }
+
+ let { open = $bindable(false) } = $props<{
open?: boolean;
- onConfirm: (provider: 'google') => void;
}>();