lib/api.js
function UnloqApi(authObj) {
    if(typeof authObj !== 'object' || authObj === null) {
      throw new Error('Unloq.Api: First constructor argument must be an instance of unloq.Auth');
    }
    // If we receive only the object with configuration, we try and create the auth object.
    if(authObj.__type !== 'auth') {
      var AuthClass = Auth();
      authObj = new AuthClass(authObj);
    }
    auth = authObj;
  }
function UnloqApi(authObj) {
    if(typeof authObj !== 'object' || authObj === null) {
      throw new Error('Unloq.Api: First constructor argument must be an instance of unloq.Auth');
    }
    // If we receive only the object with configuration, we try and create the auth object.
    if(authObj.__type !== 'auth') {
      var AuthClass = Auth();
      authObj = new AuthClass(authObj);
    }
    auth = authObj;
  }
function UnloqApi ( authObj ) { if ( typeof authObj !== 'object' || authObj === null ) { throw new Error ( 'Unloq.Api: First constructor argument must be an instance of unloq.Auth' ) ; } // If we receive only the object with configuration, we try and create the auth object. if ( authObj . __type !== 'auth' ) { var AuthClass = Auth ( ) ; authObj = new AuthClass ( authObj ) ; } auth = authObj ; }
this is an unloq.Auth instance.
this is an unloq . Auth instance .