@hivegpt/hiveai-angular 0.0.216 → 0.0.218

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -769,8 +769,11 @@
769
769
  // }
770
770
  }
771
771
  ChatDrawerComponent.prototype.ngOnChanges = function (changes) {
772
+ console.log('ng on changes');
772
773
  if (changes.s27Token) {
774
+ console.log('s27Token changed:', changes.s27Token);
773
775
  if (changes.s27Token.currentValue != changes.s27Token.previousValue) {
776
+ console.log('s27Token changed previous:', changes.s27Token.previousValue, ' current:', changes.s27Token.currentValue);
774
777
  this.s27Token = changes.s27Token.currentValue;
775
778
  if (this.is401) {
776
779
  if (this.isFetchDataFor) {
@@ -1149,7 +1152,7 @@
1149
1152
  }),
1150
1153
  })
1151
1154
  .then(function (response) {
1152
- if (response.status === 401) {
1155
+ if (response.status === 401 || response.status === 403) {
1153
1156
  _this.is401 = true;
1154
1157
  _this.refreshToken.emit();
1155
1158
  }
@@ -1207,7 +1210,7 @@
1207
1210
  }),
1208
1211
  })
1209
1212
  .then(function (response) {
1210
- if (response.status === 401) {
1213
+ if (response.status === 401 || response.status === 403) {
1211
1214
  _this.msg = msg;
1212
1215
  _this.chat = chat;
1213
1216
  _this.is401 = true;