def METHOD_NAME(cls, jwt_str, secret) -> dict:
    """
    Decode the payload decoded from `jwt_str`.
    :param jwt_str: JWT to decode
    :param secret: secret used for decoding
    :raise ExpiredJWTError: if decoding fails because the JWT's timestamp has
        expired
    :raise InvalidJWTError: if decoding fails for any other reason (for example
        `jwt_str` is invalid, or `secret` is wrong)
    :return: `jwt_str`'s payload, decoded
    """
    try:
        payload = jwt.decode(
            jwt_str,
            secret,
            algorithms=["HS256"],
            options={"require": ["exp"]},
            leeway=cls.LEEWAY,
        )
    except ExpiredSignatureError as err:
        raise ExpiredJWTError() from err
    except InvalidTokenError as err:
        raise InvalidJWTError() from err
    del payload["exp"]
    return payload