lib/user.js
function(provider, options) {
      var authType;
      if (_.isString(provider)) {
        authType = provider;
        provider = Parse.User._authProviders[provider];
      } else {
        authType = provider.getAuthType();
      }
      var newOptions = _.clone(options);
      var self = this;
      newOptions.authData = null;
      newOptions.success = function(model) {
        self._synchronizeAuthData(provider);
        if (options.success) {
          options.success.apply(this, arguments);
        }
      };
      return this._linkWith(provider, newOptions);
    }
function(provider, options) {
      var authType;
      if (_.isString(provider)) {
        authType = provider;
        provider = Parse.User._authProviders[provider];
      } else {
        authType = provider.getAuthType();
      }
      var newOptions = _.clone(options);
      var self = this;
      newOptions.authData = null;
      newOptions.success = function(model) {
        self._synchronizeAuthData(provider);
        if (options.success) {
          options.success.apply(this, arguments);
        }
      };
      return this._linkWith(provider, newOptions);
    }
function ( provider , options ) { var authType ; if ( _ . isString ( provider ) ) { authType = provider ; provider = Parse . User . _authProviders [ provider ] ; } else { authType = provider . getAuthType ( ) ; } var newOptions = _ . clone ( options ) ; var self = this ; newOptions . authData = null ; newOptions . success = function ( model ) { self . _synchronizeAuthData ( provider ) ; if ( options . success ) { options . success . apply ( this , arguments ) ; } } ; return this . _linkWith ( provider , newOptions ) ; }
Unlinks a user from a service.
Unlinks a user from a service .