message: change update authenticatedUsers middleware
diff: @@ -159,12 +159,15 @@ exports.appendUserId = () => {
  exports.updateAuthenticatedUsers = () => (req, res, next) => {
  const token = utils.jwtFrom(req) || req.cookies.token
  - if (token && this.verify(token)) {
  - const decoded = this.decode(token)
  + if (token) {
  + jwt.verify(token, publicKey, (err, decoded) => {
  + if (err === null) {
  if (this.authenticatedUsers.get(token) === undefined) {
  this.authenticatedUsers.put(token, decoded)
  res.cookie('token', token)
  }
  }
  + })
  + }
  next()
  }
  