import { redirect } from "next/navigation"; import { currentUser, safeNext } from "@/lib/auth"; import { Brand } from "@/components/Brand"; import { Flash } from "@/components/common"; import { EgovSign } from "@/components/EgovSign"; import { Footer } from "@/components/Footer"; export const dynamic = "force-dynamic"; /** PEP-71: eGov QR is the only way in; the first login registers the account. */ export default async function Login({ searchParams }: { searchParams: Promise<{ error?: string; next?: string }> }) { const { error, next } = await searchParams; if (await currentUser()) redirect(safeNext(next)); return (

Софтвейр-фабрика: проекты в Gitea, стори по OpenSpec, агенты Claude Code и Codex.

Первый вход сразу создаёт учётку по вашему ИИН. На телефоне вход открывает eGov Mobile, QR не нужен.

); }