async check(token){
    // get sessionid
    try{
      const sessionid = jwt.verify(token, privateKey).id;
      // expire sessionid
      if (await this.cache.expire(SessionModel.sessionKey(sessionid), JWT_TTL)) {
        const token = SessionModel.newToken(sessionid);
        return {token, sessionid};
      }
      return false;
    }catch(err){
      return false;
    }

  }
/**
   * Model Method - check current token and return new token
   * @param  {String}    token current token
   * @return {Object} token and session id
   */
Model Method - check current token and return new token
@param  {String}    token current token
@return {Object} token and session id
Model Method - check current token and return new token @param { String } token current token @return { Object } token and session id
async check(token){
    try{
      const sessionid = jwt.verify(token, privateKey).id;
      if (await this.cache.expire(SessionModel.sessionKey(sessionid), JWT_TTL)) {
        const token = SessionModel.newToken(sessionid);
        return {token, sessionid};
      }
      return false;
    }catch(err){
      return false;
    }
  }
async check ( token ) { try { const sessionid = jwt . verify ( token , privateKey ) . id ; if ( await this . cache . expire ( SessionModel . sessionKey ( sessionid ) , JWT_TTL ) ) { const token = SessionModel . newToken ( sessionid ) ; return { token , sessionid } ; } return false ; } catch ( err ) { return false ; } }
Model Method - check current token and return new token
 @param  {String}    token current token
 @return {Object} token and session id
Model Method - check current token and return new token @param { String } token current token @return { Object } token and session id
// get sessionid // expire sessionid