@chat21/chat21-web-widget 5.0.53-rc.7 → 5.0.53-rc.8

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # chat21-web-widget ver 5.0
2
2
 
3
+ ### 5.0.53-rc.8
4
+ - bug-fixed: if tiledeskAuth get 401 error do logOut
5
+
3
6
  ### 5.0.53-rc.7
4
7
  - bug-fixed: start message was shown twice
5
8
  - bug-fixed: is showAvailableAgents is false and no conversations exist, 'new conversation' button not displayed
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@chat21/chat21-web-widget",
3
3
  "author": "Tiledesk SRL",
4
- "version": "5.0.53-rc.7",
4
+ "version": "5.0.53-rc.8",
5
5
  "license": "MIT",
6
6
  "homepage": "https://www.tiledesk.com",
7
7
  "repository": {
@@ -117,7 +117,12 @@ export class TiledeskAuthService {
117
117
  resolve(this.currentUser)
118
118
  }
119
119
  }, (error) => {
120
+ if(error.status === 401){
121
+ this.logOut()
122
+ }
120
123
  reject(error)
124
+
125
+
121
126
  });
122
127
  });
123
128
  }