diff --git a/app/auth/sign-in/page.tsx b/app/auth/sign-in/page.tsx index a8b565ac..59709b12 100644 --- a/app/auth/sign-in/page.tsx +++ b/app/auth/sign-in/page.tsx @@ -20,7 +20,8 @@ export default async function SignInPage({ // If reauth is requested, always render the form (no redirect). if (!reauth) { - const at = cookies().get("ma_at")?.value; + const ck = await cookies(); + const at = ck.get("ma_at")?.value; if (at) redirect("/portal"); }