K
Kinde11mo ago
Hulk

Multiple audiences

Hi, I'm trying to use multiple audiences as described in the javascript-sdk (https://kinde.com/docs/developer-tools/javascript-sdk/)
const kinde = await createKindeClient({
audience: "<your_api1> <your_api2>"
...
});
const kinde = await createKindeClient({
audience: "<your_api1> <your_api2>"
...
});
but the jwt token has an empty array for the aud property like this
{
"aud": [], <---- HERE, I would expect it to be ["<your_api1>", "<your_api2>"]
"azp": "some number",
"billing": {
"has_payment_details": false,
"org_entitlements": null,
"plan": {
"code": null,
...
}
},
{
"aud": [], <---- HERE, I would expect it to be ["<your_api1>", "<your_api2>"]
"azp": "some number",
"billing": {
"has_payment_details": false,
"org_entitlements": null,
"plan": {
"code": null,
...
}
},
Both audiences are created as API' in kinde ui. And if I use a single audience I get the correct value in "aud" Could there be some settings I'm missing or do you have any other suggestions?
Kinde Docs
JavaScript SDK - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
From An unknown user
From An unknown user
No description
3 Replies
onderay
onderay11mo ago
Hey @Hulk let me just check with the team on this one. Hey @Hulk are you able to update the JS SDK you are using to the latest? v3.0.28 As that version support the multiple audiences functionality
Hulk
HulkOP11mo ago
Hi @Andre @ Kinde, thanks a lot, that was it. I was running v3.0.27 and bumping it to v3.0.28 solved the issue. Sorry that I did not try that before reaching out to you guys. Thanks 👍
onderay
onderay11mo ago
Not a problem @Hulk happy to help out
Want results from more Discord servers?
Add your server