def decode_jwt_payload(self, access_token=None):
c = self.get_credentials()<EOL>jwt = access_token or c.access_token<EOL>try:<EOL><INDENT>_, payload, _ = jwt.split('<STR_LIT:.>')  <EOL>rem = len(payload) % <NUM_LIT:4><EOL>if rem > <NUM_LIT:0>:  <EOL><INDENT>payload += '<STR_LIT:=>' * (<NUM_LIT:4> - rem)<EOL><DEDENT>try:<EOL><INDENT>decoded_jwt = b64decode(payload).decode("<STR_LIT:utf-8>")<EOL><DEDENT>except TypeError as e:<EOL><INDENT>raise PanCloudError(<EOL>"<STR_LIT>" % e)<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>x = loads(decoded_jwt)<EOL><DEDENT>except ValueError as e:<EOL><INDENT>raise PanCloudError("<STR_LIT>" % e)<EOL><DEDENT><DEDENT><DEDENT>except (AttributeError, ValueError) as e:<EOL><INDENT>raise PanCloudError("<STR_LIT>" % e)<EOL><DEDENT>return x<EOL>
Extract payload field from JWT.

        Args:
            access_token (str): Access token to decode. Defaults to ``None``.

        Returns:
            dict: JSON object that contains the claims conveyed by the JWT.