Files
HaBit/components/layout/logged-in-redirect.tsx
pricewowen 61f98866e8 avatar to main merge
I have completed the character creation screen on the avatar branch and am preparing to merge it into main.
2026-05-23 23:24:36 -06:00

14 lines
294 B
TypeScript

import { redirect } from "next/navigation";
import { getOnboardingRedirectPath, getSessionUser } from "@/lib/auth-helpers";
export async function LoggedInRedirect() {
const user = await getSessionUser();
if (user) {
redirect(await getOnboardingRedirectPath());
}
return null;
}