Welcome to the Kinde community

Updated 6 months ago

Nextjs sdk returns null for orgName despite setting organization name

At a glance

A community member is using the NextJS SDK and is encountering an issue where the orgName is being returned as null, even though they have added a name in the portal for the organization under the "Name" field in the Organization details. They are using the getOrganization function imported from getKindeServerSession.

Another community member responds that the organization name is not supplied by default, and the user will need to add the organization name to the token, as per the documentation provided in the link.

Useful resources

Hello Guys
i'm using nextjs sdk and i realised that orgName is being returned as null although i added a name in the portal for the org under the field Name in Organization details
can someone please advise why it is always returning null ?

i'm using getOrganization imported from getKindeServerSession

D
1 comment

Hi, this is no supplied by default.

You will need to add the organisation name to the token: https://docs.kinde.com/build/tokens/token-customization/

Add a reply
Sign up and join the conversation on Slack