code: function handleForceLogout(req, res, next) {
  		var p = new Promise(function (resolve, reject) {
  
  			// Lookup the user by Id and do the logout.
  			AclUser.findOne({
  				_id: req.params.id,
  				local_auth_type: 'password'
  			}, function (err, user) {
  				if (err) {
  					return reject(new restifyErrors.InternalError(err));
  				}
  				if (!user) {
  					return reject(new restifyErrors.NotFoundError());
  				}
  				user.modifiedBy = req.locals.user;
  				user.last_logout_date = new Date();
  
  				// Destroy ALL the current Bearer tokens 
  				user.bearer = [];
  
  				// Save the User back to the database
  				debug(`Forcing logout of ${user.email}`);
  				user.save(function (err, result) {
  					if (err) {
  						debug('Error in force logout', err);
  						return reject(new restifyErrors.InternalError(err));
  					}
  					resolve({
  						success: true,
  						message: 'success'
  					});
  				});
  			});
  		}).then(function (data) {
  			res.json(data);
  			next();
  		}).catch(function (err) {
  			debug('Error in force logout', err);
  			next(err);
  		});
  	}
docs: handleSocketToken *******************************************************