src/Build.php
public function setSecret(string $secret): self
    {
        if (!$this->validate->secret($secret)) {
            throw new ValidateException('Invalid secret.', 9);
        }

        $this->secret = $secret;

        return $this;
    }
public function setSecret(string $secret): self
    {
        if (!$this->validate->secret($secret)) {
            throw new ValidateException('Invalid secret.', 9);
        }

        $this->secret = $secret;

        return $this;
    }
public function setSecret ( string $ secret ) : self { if ( ! $ this -> validate -> secret ( $ secret ) ) { throw new ValidateException ( 'Invalid secret.' , 9 ) ; } $ this -> secret = $ secret ; return $ this ; }
Set the JWT secret for encrypting the JWT signature. The secret must
comply with the validation rules defined in the
ReallySimpleJWT\Validate class.

@param string $secret
@return Build
@throws Exception\ValidateException
Set the JWT secret for encrypting the JWT signature . The secret must comply with the validation rules defined in the ReallySimpleJWT \ Validate class .