Model/JWT.php
public function setPeriod(\DateTime $start = null, \DateTime $end = null)
    {
        $this->claims['nbf'] = $start->getTimestamp();
        $this->claims['exp'] = $end->getTimestamp();

        return $this;
    }
public function setPeriod(\DateTime $start = null, \DateTime $end = null)
    {
        $this->claims['nbf'] = $start->getTimestamp();
        $this->claims['exp'] = $end->getTimestamp();

        return $this;
    }
public function setPeriod ( \ DateTime $ start = null , \ DateTime $ end = null ) { $ this -> claims [ 'nbf' ] = $ start -> getTimestamp ( ) ; $ this -> claims [ 'exp' ] = $ end -> getTimestamp ( ) ; return $ this ; }
Sets token expiration period

@param \DateTime|null $start
@param \DateTime|null $end

@return JWT
Sets token expiration period