refreshUserClaims()
in the management API (either via the JavaScript SDK or .NET SDKs) then nothing happens and the user still gets forbidden access issues from my application (I do get a success response from Kinde when calling the refresh API).refreshUserClaims()
is needed at all, at least in terms of understanding what is actually happening. I would have thought just forcing a refresh of the users auth token would in turn refresh the claims. It's been a minute since I looked at your Nuxt SDK source code, but IIRC there was another method to refresh claims (that didn't require a M2M app) but because it was using your sessionManager
the session manager already saw that there was a 'valid' auth token and so doesn't call your servers to refresh, at least to my understanding.I'm using Nuxt (Vue) to perform auth / registration using your SDK. In the case of the API call to refreshing claims I'm using your TypeScript SDK as that's your current guidance.It sounds like you are using the TypeScript SDK to refresh claims and it's not working as expected.
I'm also using the .NET SDK to try and force a claims refresh. My .NET APIs are the one's doing the M2M 'heavy lifting', I'm only using TypeScript SDK to do the claims refresh as that is the Nuxt server which 'owns' the Kinde cookie / JWT. (I do also force a claims refresh for actions which change claims values in the .NET API but I understand why it does nothing, my .NET API only validates the JWT with Kinde)
GitHub issue
on the TypeScript SDK GitHub repo around your use-case of refreshing claims - it's easier for my expert TypeScript teammate to address TypeScript queries raised on GitHub when he has time to look into themI guess one question I would have for your team is why an API call to Kinde's servers via refreshUserClaims() is needed at all, at least in terms of understanding what is actually happening. I would have thought just forcing a refresh of the users auth token would in turn refresh the claims. It's been a minute since I looked at your Nuxt SDK source code, but IIRC there was another method to refresh claims (that didn't require a M2M app) but because it was using your sessionManager the session manager already saw that there was a 'valid' auth token and so doesn't call your servers to refresh, at least to my understanding.
P.S. working on Christmas day Oli? That's dedication πWe keep our eyes on Kinde businesses and systems, whilst you enjoy your holiday period π
GitHub issue
. My TS teammate will look at this when he is back online in the new year.js utils
package.js utils
package solves your token refresh issues, e.g. when reassigning orgs.GitHub issue
- they are the best way for my teammates to investigate and communicate on our progress on issues that come up.js utils
package in place? Right now it's just annoying, because I don't have any customers as I build out my MVP. But it would be a significant issue for me were I live, to the point where I'd need to heavily change my onboarding workflow to work around it.JS Utils
package live.JS Utils
package.JS Utils
package will be released.refreshUserClaims()
using Kinde's Management API but it did nothing.