Setting the audience for Nuxt to get token to be used with ASP.NET API

Hi, I am having issues assigning at audience to my tokens for my nuxt+asp.net application. I have followed the instructions for both sdks, and I have configured my jwt validation process as per: https://discord.com/channels/1070212618549219328/1181922100806680646 I have defined an environment variable in my .env file on my front end and I can get a token just fine. The issue is that the token doesn't have the aud defined (it's just an empty []) I have allowed the Kinde Management API access as per the instructions in the docs: https://docs.kinde.com/developer-tools/kinde-api/register-an-api/ I had a look at the nuxt composable useKindeClient but that doesn't take any arguments and so I can't define an audience? The long term intent is to allow users to log in via the front end, get their access token, store it in the session, and then use that for each backend request. Any suggestions would be greatly appreciated. I was considering going down the ts route, but wasn't sure whether that would clash at all with anything....
Kinde docs
Register and manage APIs
Our developer tools provide everything you need to get started with Kinde.
7 Replies
Claire_Kinde
Claire_Kinde•6mo ago
Hi there, can you tell us what your Kinde business name is that email you signed up with?
skywalker-kiwi#02131
skywalker-kiwi#02131OP•6mo ago
Summt It is not the email I signed up with. The email I signed up with is [email protected]
Claire_Kinde
Claire_Kinde•6mo ago
Hey there. Sorry for the delayed response. It has been a long weekend here. I can see the business 'The Adaptive Network' are you still having the above issue with the audience?
skywalker-kiwi#02131
skywalker-kiwi#02131OP•6mo ago
Hi, no worries! The issue has been resolved. How long do changes to project settings take to percolate to the UI layer? Also, another question: I registered initially with "The Adaptive Network" and then made another business for my app "Summt". Does "Summt" fall under the same "tenancy" as The Adaptive Network?
Claire_Kinde
Claire_Kinde•6mo ago
Hi. So technically both Summt and The adaptive network are tenants in your account with Kinde. However, they are separately run businesses and not able to share environments or users in a classic 'multi-tenanting way'. If you have business customers and need to create tenants of your own in a business, you can do this with Organizations in Kinde. This topic explains a bit more - https://docs.kinde.com/build/organizations/orgs-for-developers/#_top On the other question of "how long project settings take to percolate to the UI layer" I might need a bit more clarification. Do you mean how long to changes you make in Kinde take to update in your project - should be instantaneous provided you're connected and set up right. OR did you mean something else? Let me know if I can help further 😀
skywalker-kiwi#02131
skywalker-kiwi#02131OP•6mo ago
Cool, thank you for the clarification, it sounds like I've got it configured how I would like. On the second question, yes that is what I am asking. It seems like the audience issue has been resolved, so I'll be in touch if there any more settings latency issues
Claire_Kinde
Claire_Kinde•6mo ago
Glad to hear everything is back on track.
Want results from more Discord servers?
Add your server