You can add custom claims in a rule and decode using the following library:
jwt.io is also a great resource.