Refactored the JWToken constructor