meteor/accounts-base/accounts_server.js
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 } }
      }
    });
  }
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 } }
      }
    });
  }
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 } } } } ) ; }
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.
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 .