src/Assets/AssetCatalogueProvider.php
protected function createToken($data)
    {
        $key = self::getJwtKey();

        $token = array(
            "iat" => time(),
            "provider" => get_class($this),
            "category" => $this->category,
            "data" => $data
        );

        $jwt = JWT::encode($token, $key);

        return $jwt;
    }
protected function createToken($data)
    {
        $key = self::getJwtKey();

        $token = array(
            "iat" => time(),
            "provider" => get_class($this),
            "category" => $this->category,
            "data" => $data
        );

        $jwt = JWT::encode($token, $key);

        return $jwt;
    }
protected function createToken ( $ data ) { $ key = self :: getJwtKey ( ) ; $ token = array ( "iat" => time ( ) , "provider" => get_class ( $ this ) , "category" => $ this -> category , "data" => $ data ) ; $ jwt = JWT :: encode ( $ token , $ key ) ; return $ jwt ; }
Creates a JWT token to encode an asset using the passed data array.

@param $data
@return string
@throws AssetException
Creates a JWT token to encode an asset using the passed data array .