public function generateToken($data, $options = array())
    {
        return $this->encodeToken(
            $this->buildClaims($options + array('data' => $data)),
            $this->secret
        );
    }
public function generateToken($data, $options = array())
    {
        return $this->encodeToken(
            $this->buildClaims($options + array('data' => $data)),
            $this->secret
        );
    }
public function generateToken ( $ data , $ options = array ( ) ) { return $ this -> encodeToken ( $ this -> buildClaims ( $ options + array ( 'data' => $ data ) ) , $ this -> secret ) ; }
Generate a JWT token by specifying data and options
@param array|null $data
@param array $options
@return string
Generate a JWT token by specifying data and options