Looks like the module you reference has not been updated in quite a while, so it is not compatible with Mendix 10.
The OIDC module contains the code to decode JWTs.
There is a java action named "DecodeJWT" that you can use in a microflow. If you do not need the OIDC module you could extract this java file and dependencies from the OIDC module.
Once you decode the token you can inspect scopes and other attributes for your validation.