lib/index.js
function UserVoiceSSO(subdomain, ssoKey) {

  // For UserVoice, the subdomain is used as password
  // and the ssoKey is used as salt
  this.subdomain = subdomain;
  this.ssoKey = ssoKey;

  if(!this.subdomain) {
    throw new Error('No UserVoice subdomain given');
  }

  if(!this.ssoKey) {
    throw new Error('No SSO key given. Find it ');
  }

  this.defaults = {};
}
function UserVoiceSSO(subdomain, ssoKey) {

  // For UserVoice, the subdomain is used as password
  // and the ssoKey is used as salt
  this.subdomain = subdomain;
  this.ssoKey = ssoKey;

  if(!this.subdomain) {
    throw new Error('No UserVoice subdomain given');
  }

  if(!this.ssoKey) {
    throw new Error('No SSO key given. Find it ');
  }

  this.defaults = {};
}
function UserVoiceSSO ( subdomain , ssoKey ) { // For UserVoice, the subdomain is used as password // and the ssoKey is used as salt this . subdomain = subdomain ; this . ssoKey = ssoKey ; if ( ! this . subdomain ) { throw new Error ( 'No UserVoice subdomain given' ) ; } if ( ! this . ssoKey ) { throw new Error ( 'No SSO key given. Find it ' ) ; } this . defaults = { } ; }
UserVoice SSO Contstructor
@param {String} subdomain Subdomain name
@param {String} ssoKey SSO key
UserVoice SSO Contstructor