code: function () {
      var self = this;
      if (! self.userId) {
        throw new Meteor.Error("You are not logged in.");
      }
      var currentToken = Accounts._getLoginToken(self.connection.id);
      Meteor.users.update(self.userId, {
        $pull: {
          "services.resume.loginTokens": { hashedToken: { $ne: currentToken } }
        }
      });
    }
docs: Removes all tokens except the token associated with the current connection. Throws an error if the connection is not logged in. Returns nothing on success.