code: function (settings) {
      this.key = settings && settings.key;
      this.userId = settings && settings.userId;
      this.username = settings && settings.username;
      return this;
    }
docs: Authorize the current client
  @param settings {Object}
  @return {Object} self