makearmy-app/app/auth/sign-up/page.tsx

11 lines
322 B
TypeScript
Raw Normal View History

2025-09-27 14:30:16 -04:00
// app/auth/sign-up/page.tsx
import { cookies } from "next/headers";
import { redirect } from "next/navigation";
import SignUp from "./sign-up";
2025-09-27 14:41:56 -04:00
export default async function SignUpPage() {
2025-09-27 14:30:16 -04:00
const at = (await cookies()).get("ma_at")?.value;
2025-09-27 14:41:56 -04:00
if (at) redirect("/portal");
return <SignUp nextPath="/portal" />;
2025-09-26 15:59:15 -04:00
}