src/Parse.php
public function validate(): self
    {
        if (!$this->validate->structure($this->jwt->getToken())) {
            throw new ValidateException('Token is invalid.', 1);
        }

        $this->validateSignature();

        return $this;
    }
public function validate(): self
    {
        if (!$this->validate->structure($this->jwt->getToken())) {
            throw new ValidateException('Token is invalid.', 1);
        }

        $this->validateSignature();

        return $this;
    }
public function validate ( ) : self { if ( ! $ this -> validate -> structure ( $ this -> jwt -> getToken ( ) ) ) { throw new ValidateException ( 'Token is invalid.' , 1 ) ; } $ this -> validateSignature ( ) ; return $ this ; }
Validate the JWT has the right string structure and the signature
is valid and has not been tampered with.

@return Parse
Validate the JWT has the right string structure and the signature is valid and has not been tampered with .