"use client"; import { useKindeBrowserClient } from "@kinde-oss/kinde-auth-nextjs"; import { FC } from "react"; type ServicesPageProps = {}; const ServicesPage: FC<ServicesPageProps> = ({}) => { const { getOrganization } = useKindeBrowserClient(); console.log(getOrganization().orgCode); return <div>ServicesPage</div>; }; export default ServicesPage;
TypeError: Cannot read properties of null (reading 'orgCode')