K
Kinde2w ago
nakulbh

getUserOrganizations returning null

I have a user which is part of two organization, but when i call getUserOrganizations it returns null
5 Replies
IkiTg07
IkiTg072w ago
Hello what SDK are you using and could you share a snippet please?
nakulbh
nakulbh2w ago
I am using Nextjs SDK I want to use Kinde B2B features to create organization for users and make users invite members to organization
IkiTg07
IkiTg072w ago
Just tried it on my end and even with the user belonging to one org it stills returns null. Lemme tell the team about that What version of the SDK are you using ?
Claire_Kinde
Claire_Kinde2w ago
Hi there. Offering an answer from a similar issue - make sure that you switch on the relevant additional claims in the token settings. See this doc https://docs.kinde.com/build/tokens/token-customization/?r=search#_top
Kinde docs
Token customization
Our developer tools provide everything you need to get started with Kinde.
Claire_Kinde
Claire_Kinde2w ago
1. In Kinde, go to Settings > Applications and select Details on your application. 2. Select Tokens, then scroll to the Token customization section. 3. On the Access token card, select Customize. A selection window appears. 4. Select organization name. and Save.
Want results from more Discord servers?
Add your server