src/Build.php
private function getSignature(): string
    {
        if (!empty($this->secret)) {
            return $this->encode->signature(
                $this->jsonEncode($this->getHeader()),
                $this->jsonEncode($this->getPayload()),
                $this->secret
            );
        }

        throw new ValidateException('Invalid secret.', 9);
    }
private function getSignature(): string
    {
        if (!empty($this->secret)) {
            return $this->encode->signature(
                $this->jsonEncode($this->getHeader()),
                $this->jsonEncode($this->getPayload()),
                $this->secret
            );
        }

        throw new ValidateException('Invalid secret.', 9);
    }
private function getSignature ( ) : string { if ( ! empty ( $ this -> secret ) ) { return $ this -> encode -> signature ( $ this -> jsonEncode ( $ this -> getHeader ( ) ) , $ this -> jsonEncode ( $ this -> getPayload ( ) ) , $ this -> secret ) ; } throw new ValidateException ( 'Invalid secret.' , 9 ) ; }
Generate and return the JWT signature this is made up of the header,
payload and secret.

@return string
@throws Exception\ValidateException
Generate and return the JWT signature this is made up of the header payload and secret .