code: function(provider) {
          var authType;
          if (_.isString(provider)) {
            authType = provider;
          } else {
            authType = provider.getAuthType();
          }
          var authData = this.get('authData') || {};
          return !!authData[authType];
        }
docs: Checks whether a user is linked to a service.
  @private