Hello so take that code
"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;
This produce this error :
TypeError: Cannot read properties of null (reading 'orgCode')
getOrganization() returns a string not an object but the issue is that when working in vscode getOrganization(). brings intelisense with orgcode