Files
CollabTable/frontend/src/lib/features/auth/AuthPage.svelte
T

18 lines
518 B
Svelte
Raw Normal View History

<script>
2026-08-04 17:05:37 +02:00
import { AuthPage as SharedAuthPage } from '@gabriel20xx/shared-code/web-ui';
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);
</script>
2026-08-04 17:05:37 +02:00
<SharedAuthPage
brand="CollabTable"
tagline="Collaborative tables for your team"
{setupRequired}
{onLogin}
{onSetup}
/>