Files
buzz-sheet/app/auth/login/page.tsx
T
gunshiz 6dfa9bbf89
CI / Verify (push) Successful in 3m7s
CI / Build immutable images and deploy (push) Successful in 4m25s
Route Buzz Guide login through Sudloh Account
2026-10-05 16:55:38 +07:00

13 lines
570 B
TypeScript

import { connection } from "next/server";
import { AccountPage } from "@/components/auth/account-page";
export const instant = false;
export default async function LoginPage({ searchParams }: PageProps<"/auth/login">) {
await connection();
const { next, verified, error, sudloh } = await searchParams;
const oidcError = sudloh === "1" && typeof error === "string" ? error : undefined;
return <AccountPage mode="login" next={next} verified={verified === "1" && !error}
verificationError={typeof error === "string" && !oidcError} oidcError={oidcError} />;
}