Setting a user role in an action will not update the permissions in the access token

I have the same issue, after updating the user’s role in action permissions array is empty in the access token.