protected function validateTimestamps(array $payload)
    {
        if (isset($payload['nbf']) && Utils::timestamp($payload['nbf'])->isFuture()) {
            throw new TokenInvalidException('Not Before (nbf) timestamp cannot be in the future', 400);
        }

        if (isset($payload['iat']) && Utils::timestamp($payload['iat'])->isFuture()) {
            throw new TokenInvalidException('Issued At (iat) timestamp cannot be in the future', 400);
        }

        if (Utils::timestamp($payload['exp'])->isPast()) {
            throw new TokenExpiredException('Token has expired');
        }

        return true;
    }
protected function validateTimestamps(array $payload)
    {
        if (isset($payload['nbf']) && Utils::timestamp($payload['nbf'])->isFuture()) {
            throw new TokenInvalidException('Not Before (nbf) timestamp cannot be in the future', 400);
        }

        if (isset($payload['iat']) && Utils::timestamp($payload['iat'])->isFuture()) {
            throw new TokenInvalidException('Issued At (iat) timestamp cannot be in the future', 400);
        }

        if (Utils::timestamp($payload['exp'])->isPast()) {
            throw new TokenExpiredException('Token has expired');
        }

        return true;
    }
protected function validateTimestamps ( array $ payload ) { if ( isset ( $ payload [ 'nbf' ] ) && Utils :: timestamp ( $ payload [ 'nbf' ] ) -> isFuture ( ) ) { throw new TokenInvalidException ( 'Not Before (nbf) timestamp cannot be in the future' , 400 ) ; } if ( isset ( $ payload [ 'iat' ] ) && Utils :: timestamp ( $ payload [ 'iat' ] ) -> isFuture ( ) ) { throw new TokenInvalidException ( 'Issued At (iat) timestamp cannot be in the future' , 400 ) ; } if ( Utils :: timestamp ( $ payload [ 'exp' ] ) -> isPast ( ) ) { throw new TokenExpiredException ( 'Token has expired' ) ; } return true ; }
Validate the payload timestamps.

@param  array  $payload
@throws \Lia\Addons\JWTAuth\Exceptions\TokenExpiredException
@throws \Lia\Addons\JWTAuth\Exceptions\TokenInvalidException
@return bool
Validate the payload timestamps .