Welcome to the Kinde community

Updated 2 months ago

`getPermissions()` not returning latest data

Hi! I have a user with a role and a permission that is included as part of that role. however, when I do getPermissions() in the React Native SDK, it's returning an empty list of permissions - when I check for that specific permission with getPermission() it says isGranted: false

However, in the Kinde UI, the user has that role (and thus the perms under that role)

Is there anything I am missing? Thank you!
D
h
S
5 comments
Hi, Have you refreshed the token since updating the permissions?
... lol - that was the fix, thank you!
Probably a silly question but I'm having the same issue...what is the best way to refresh the token after an update to permissions like this in the Next.js SDK?
@Sophia prob not the most efficient but I am just doing forceTokenRefresh(); on application load
Add a reply
Sign up and join the conversation on Discord