lib/Middleware.js
function _timestampBeforeNow(timestamp) {
      if(!(typeof timestamp === 'string' && dateRegEx.test(timestamp))) {
        throw new TypeError('`revoked` timestamp must be a string.');
      }
      const now = new Date();
      const tsDate = new Date(timestamp);
      return tsDate < now;
    }
function _timestampBeforeNow(timestamp) {
      if(!(typeof timestamp === 'string' && dateRegEx.test(timestamp))) {
        throw new TypeError('`revoked` timestamp must be a string.');
      }
      const now = new Date();
      const tsDate = new Date(timestamp);
      return tsDate < now;
    }
function _timestampBeforeNow ( timestamp ) { if ( ! ( typeof timestamp === 'string' && dateRegEx . test ( timestamp ) ) ) { throw new TypeError ( '`revoked` timestamp must be a string.' ) ; } const now = new Date ( ) ; const tsDate = new Date ( timestamp ) ; return tsDate < now ; }
returns true if the given timestamp is before the current time
returns true if the given timestamp is before the current time