src/Build.php
public function setExpiration(int $timestamp): self
    {
        if (!$this->validate->expiration($timestamp)) {
            throw new ValidateException('Expiration claim has expired.', 4);
        }

        $this->payload['exp'] = $timestamp;

        return $this;
    }
public function setExpiration(int $timestamp): self
    {
        if (!$this->validate->expiration($timestamp)) {
            throw new ValidateException('Expiration claim has expired.', 4);
        }

        $this->payload['exp'] = $timestamp;

        return $this;
    }
public function setExpiration ( int $ timestamp ) : self { if ( ! $ this -> validate -> expiration ( $ timestamp ) ) { throw new ValidateException ( 'Expiration claim has expired.' , 4 ) ; } $ this -> payload [ 'exp' ] = $ timestamp ; return $ this ; }
Set the expiration JWT payload claim. This sets the time at which the
JWT should expire and no longer be accepted.

@param int $timestamp
@return Build
@throws Exception\ValidateException
Set the expiration JWT payload claim . This sets the time at which the JWT should expire and no longer be accepted .