Have you defined the access token attributes for the specific application?
If you want to include custom claims in the JWT access token, you need to configure the required JWT access token attributes accordingly. This can be done by following the steps outlined in the official documentation:
🔗 Access Token Attributes – WSO2 Identity Server Documentation
Once configured, the custom claims will be included in the JWT access token as expected.