Welcome to the Kinde community.

P
K
A
A
A

Org Properties

Hello,

I am using the NextJS SDK (server & client) to get the org details, it is not returning the org name, the property for "city" is undefined as I added a value through the UI and I have added a custom property and it is not showing in the org details. It is showing in the ID token and Access token as I have extended those to include the custom property.

Is this the expected behaviour?


Response from:
const { getOrganization } = getKindeServerSession();
const org = await getOrganization();
console.log(org, "org");

{
orgCode: 'org_**',
orgName: null,
properties: {
city: undefined,
industry: undefined,
postcode: undefined,
state_region: undefined,
street_address: undefined,
street_address_2: undefined
}
-> is billing_customerid not supposed to be part of properties? It is set to PublicResponse from: const { getIdToken } = getKindeServerSession(); const idToken = await getIdToken(); console.log(idToken, "idToken"); organizations: [ { id: 'org*', name: 'Test Organisation' } ],
organization_properties: { billing_customer_id: { v: '**' } },
C
r
7 comments
Hey @razer293
You need to add these as claims to the token. To do this - follow this doc: https://docs.kinde.com/build/tokens/token-customization/
Let me know if this helps or if you need additional support 🙂
Hi Claire, thanks for replying! So I have added them to the tokens and they appear, but it is the org response that doesn’t have any values in it - doesn’t have the org name, city name or the additional attribute I added
Ah okay. I might need to get our Next.js person to help you out. They will not be back online until tomorrow.
Can you provide your Kinde business name and email (feel free to do this via DM), and also confirm the Next.js version you are using.
Have sent you a DM with the details
Add a reply
Sign up and join the conversation on Discord
Join