"use client";
import { useKindeAuth } from "@kinde-oss/kinde-auth-nextjs";
export const MyComponent = () => {
const { isLoading, getOrganization } = useKindeAuth();
// Prints: {isLoading: true, org: null}
console.log({
isLoading,
org: getOrganization(),
});
...
};
"use client";
import { useKindeAuth } from "@kinde-oss/kinde-auth-nextjs";
export const MyComponent = () => {
const { isLoading, getOrganization } = useKindeAuth();
// Prints: {isLoading: true, org: null}
console.log({
isLoading,
org: getOrganization(),
});
...
};