import './page.css'; import { redirect } from '@wular/pnext/navigation'; import { ErrorText } from '@/comps/ui/field'; import { AuthPanel } from '@/comps/frame/auth-panel'; import { safeReturnPath } from '@coder/server/auth/sign-in'; import { load } from '@/api/load'; const WULAR_LOGO = ( ); const ERRORS: Record = { expired: 'That sign-in took too long. Sign in again.', unavailable: 'Wular Auth could not be reached. Try again in a moment.', access_denied: 'Sign-in was cancelled.', }; function LoginPage({ signIn, error }: { signIn: string; error?: string | null }) { return ( ); } export default async function Page({ request }: { request?: Request }) { if (!request) return null; const url = new URL(request.url); const { wular } = await load(request).info(); // A memory server keeps no accounts: its dashboard asks for the admin token. if (!wular) redirect('/dash'); return ( ); }