2026-08-01 12:51:02 +02:00
|
|
|
<script>
|
2026-08-04 17:05:37 +02:00
|
|
|
import { AuthPage as SharedAuthPage } from '@gabriel20xx/shared-code/web-ui';
|
2026-08-01 12:51:02 +02:00
|
|
|
import { useAuth } from '$lib/features/auth/auth.svelte.js';
|
|
|
|
|
|
|
|
|
|
let { setupRequired } = $props();
|
|
|
|
|
const auth = useAuth();
|
|
|
|
|
|
2026-08-04 17:05:37 +02:00
|
|
|
const onLogin = (input) => auth.login(input.identifier, input.password);
|
|
|
|
|
const onSetup = (input) => auth.setup(input.username, input.email, input.password);
|
2026-08-01 12:51:02 +02:00
|
|
|
</script>
|
|
|
|
|
|
2026-08-04 17:05:37 +02:00
|
|
|
<SharedAuthPage
|
|
|
|
|
brand="CollabTable"
|
|
|
|
|
tagline="Collaborative tables for your team"
|
|
|
|
|
{setupRequired}
|
|
|
|
|
{onLogin}
|
|
|
|
|
{onSetup}
|
|
|
|
|
/>
|