Why my permissions are not sent in the token?
This is the token when I decode on the jwt.io:
9 Replies
I tried to follow this: https://discord.com/channels/1070212618549219328/1337057274178568202/1337311358751866921
I don't have this option:
Sorry you are having this issue. What SDK are you using?
I was using an example of Refine dev. And they use a library that is quite old, I see now. https://github.com/hirenf14/refine-auth-kinde-react
GitHub
GitHub - hirenf14/refine-auth-kinde-react: AuthProvider for Refine ...
AuthProvider for Refine with Kinde integration. Contribute to hirenf14/refine-auth-kinde-react development by creating an account on GitHub.
Might that be the issue?
I see it uses
That could be the issue. Especially if it is not up to date with our latest SDK version. I recommend updating to use our SDK. Note also that a new React SDK package will be made available in a week or so. It's a sizeable update, so you may want to wait for it.
Let us know if you have any other questions.
Hey, I upgraded to the latest version, but I am still not getting the
permissions
in the token. Not sure what else I can tryAs I said the React package is being updated but has not been released yet - so our latest is not the new version yet. We are hoping later this week. In the meantime, just checking you have seen this section of the docs about helper functions and permissions in tokens https://docs.kinde.com/developer-tools/sdks/frontend/react-sdk/#user-permissions
Re the option to switch on "Include API scopes in the permissions claim"
You should be able to do this if you open your application in Kinde, go to Tokens, then scroll to the Access token tile and click Customize. This should be the top option you see.
Let me know how you go.
I don't have the option to include permissions in the token. I also check the docs, it is just not there

I'm going to refer this to a team member to troubleshoot for you.
Hi,
It looks like your permissions are already included under
Let me know if this helps or if you need further assistance
It looks like your permissions are already included under
x-hasura-permissions
, which suggests that Hasura mapping is enabled. Please review your Hasura authentication settings to confirm if this is the expected behavior.Let me know if this helps or if you need further assistance