import { LogoutLink } from "@kinde-oss/kinde-auth-nextjs/components";
⨯ node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs (1:25093) @ xt ⨯ Internal error: ApiError: Invalid credentials. at xt (./node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1849:18) at eval (./node_modules/@kinde/management-api-js/dist/kinde-management-api-js.cjs:1876:17) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) digest: "2794529496" null
const client = await createKindeManagementAPIClient(); client.usersApi.updateUser({ id: ctx.userId, updateUserRequest: { familyName: input.family_name, givenName: input.given_name, }, });
console.log("organization", organization.orgCode);
"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')
✓ Compiled /api/auth/[kindeAuth] in 272ms (896 modules) Error: Cannot get user details, no authentication credential found at eval (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/clients/server/authorization-code.js:310:35) at step (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/clients/server/authorization-code.js:123:23) at Object.eval [as next] (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/clients/server/authorization-code.js:64:20) at fulfilled (webpack-internal:///(rsc)/./node_modules/@kinde-oss/kinde-typescript-sdk/dist/sdk/clients/server/authorization-code.js:27:32)