"use client"; import type { ReactNode } from "react"; import { useAuthSession } from "@/hooks/useAuthSession"; export function AuthSessionGate({ children }: { children: ReactNode }) { const session = useAuthSession(); const user = session.data; const checking = session.isPending || session.isFetching; const identity = user && JSON.stringify([user.userId, user.userRole, user.userTeam, user.userCmpn]); return <> {session.isError && !checking &&
로그인 정보를 확인하지 못했습니다.