src/Build.php
public function setAudience($audience): self
    {
        if (is_string($audience) || is_array($audience)) {
            $this->payload['aud'] = $audience;

            return $this;
        }

        throw new ValidateException('Invalid Audience claim.', 10);
    }
public function setAudience($audience): self
    {
        if (is_string($audience) || is_array($audience)) {
            $this->payload['aud'] = $audience;

            return $this;
        }

        throw new ValidateException('Invalid Audience claim.', 10);
    }
public function setAudience ( $ audience ) : self { if ( is_string ( $ audience ) || is_array ( $ audience ) ) { $ this -> payload [ 'aud' ] = $ audience ; return $ this ; } throw new ValidateException ( 'Invalid Audience claim.' , 10 ) ; }
Set the audience JWT payload claim. This defines a list of 'principals'
who will process the JWT. Eg a website or websites who will validate
users who use this token. This claim can either be a single string or an
array of strings.

@param mixed $audience
@return Build
@throws Exception\ValidateException
Set the audience JWT payload claim . This defines a list of principals who will process the JWT . Eg a website or websites who will validate users who use this token . This claim can either be a single string or an array of strings .