src/Build.php
public function build(): Jwt
    {
        return new Jwt(
            $this->encode->encode($this->jsonEncode($this->getHeader())) . "." .
            $this->encode->encode($this->jsonEncode($this->getPayload())) . "." .
            $this->getSignature(),
            $this->secret
        );
    }
public function build(): Jwt
    {
        return new Jwt(
            $this->encode->encode($this->jsonEncode($this->getHeader())) . "." .
            $this->encode->encode($this->jsonEncode($this->getPayload())) . "." .
            $this->getSignature(),
            $this->secret
        );
    }
public function build ( ) : Jwt { return new Jwt ( $ this -> encode -> encode ( $ this -> jsonEncode ( $ this -> getHeader ( ) ) ) . "." . $ this -> encode -> encode ( $ this -> jsonEncode ( $ this -> getPayload ( ) ) ) . "." . $ this -> getSignature ( ) , $ this -> secret ) ; }
Build the token, this is the last method which should be called after
all the header and payload claims have been set. It will encode the
header and payload, and generate the JWT signature. It will then
concatenate each part with dots into a single string.

This JWT string along with the secret are then used to generate a new
instance of the JWT class which is returned.

@return Jwt
Build the token this is the last method which should be called after all the header and payload claims have been set . It will encode the header and payload and generate the JWT signature . It will then concatenate each part with dots into a single string .