1
0
forked from wrenn/wrenn

Prototype with single host server and no admin panel (#2)

Reviewed-on: wrenn/sandbox#2
Co-authored-by: pptx704 <rafeed@omukk.dev>
Co-committed-by: pptx704 <rafeed@omukk.dev>
This commit is contained in:
2026-03-22 21:01:23 +00:00
committed by Rafeed M. Bhuiyan
parent bd78cc068c
commit 32e5a5a715
293 changed files with 46885 additions and 1033 deletions

View File

@ -0,0 +1,28 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { auth } from '$lib/auth.svelte';
const params = $page.url.searchParams;
const error = params.get('error');
if (error) {
goto(`/login?error=${encodeURIComponent(error)}`);
} else {
const token = params.get('token');
const userId = params.get('user_id');
const teamId = params.get('team_id');
const email = params.get('email');
if (token && userId && teamId && email) {
auth.login({ token, user_id: userId, team_id: teamId, email });
goto('/dashboard');
} else {
goto('/login?error=missing_token');
}
}
</script>
<div class="flex min-h-screen items-center justify-center">
<p class="text-[13px] text-[var(--color-text-secondary)]">Signing you in...</p>
</div>