In user panel, enable Settings -> Applications -> ... -> Tokens -> Access Token -> Organisation Name (string)
Then augment the module to add the missing property:
// i.e. src/types/kinde.d.ts
declare module "@kinde-oss/kinde-auth-nextjs" {
export type KindeOrganization = {
orgName: string | null;
};
}
Expected
KindeOrganization should now contain both orgName and orgCode
Actual
The whole module is now broken, all imports are failing, i.e.
Module '"@kinde-oss/kinde-auth-nextjs"' has no exported member 'useKindeBrowserClient'.ts(2305)
Prerequisites
Describe the issue
Steps
In user panel, enable
Settings -> Applications -> ... -> Tokens -> Access Token -> Organisation Name (string)
Then augment the module to add the missing property:Expected
KindeOrganization
should now contain bothorgName
andorgCode
Actual
The whole module is now broken, all imports are failing, i.e.
Library URL
https://github.com/kinde-oss/kinde-auth-nextjs
Library version
2.2.3
Operating system(s)
macOS
Operating system version(s)
n/a
Further environment details
Next.js 14.2.2
Reproducible test case URL
No response
Additional information
No response