diff --git a/README.md b/README.md index 96ffa10a..25fd5918 100644 --- a/README.md +++ b/README.md @@ -1045,14 +1045,14 @@ Smooch.init({ #### onInvalidAuth -The `onInvalidAuth` delegate notifies the delegate of a failed request due to invalid credentials and allows the implementer to set a new auth token in order to retry the request. The delegate must return a new JWT token as a `string` or `Promise` that will resolve into the JWT. +The `onInvalidAuth` delegate notifies the delegate of a failed request due to invalid credentials and allows the implementer to set a new auth token in order to retry the request. The delegate returns a `Promise` that resolves a new valid JWT asynchronously. ```javascript Smooch.init({ integrationId: '', delegate: { onInvalidAuth() { - return ''; + return new Promise((resolve) => resolve('')); }, }, }); diff --git a/smooch.5.5.3.min.js b/smooch.5.5.4.min.js similarity index 96% rename from smooch.5.5.3.min.js rename to smooch.5.5.4.min.js index 2100da4c..c0e545df 100644 --- a/smooch.5.5.3.min.js +++ b/smooch.5.5.4.min.js @@ -1,3 +1,3 @@ -/*! For license information please see smooch.5.5.3.min.js.LICENSE.txt */ -!function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="https://cdn.smooch.io/",n(n.s=551)}({151:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o="web-messenger-container"},226:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var o={lg:{minHeight:668,minWidth:1200},md:[{minHeight:508,minWidth:768,maxWidth:1199},{minHeight:508,maxHeight:667,minWidth:768}],sm:{maxHeight:507,minWidth:768},xs:{maxWidth:767}}},273:function(t,e,n){"use strict";n.d(e,"a",(function(){return _})),n.d(e,"b",(function(){return E}));var o=n(491),r=n.n(o);function i(t){"complete"!==document.readyState&&"loaded"!==document.readyState&&"interactive"!==document.readyState||!document.body?document.addEventListener("DOMContentLoaded",(function(){t()})):t()}function a(t){var e=["screen"];return t.minHeight&&e.push("(min-height: ".concat(t.minHeight,"px)")),t.maxHeight&&e.push("(max-height: ".concat(t.maxHeight,"px)")),t.minWidth&&e.push("(min-width: ".concat(t.minWidth,"px)")),t.maxWidth&&e.push("(max-width: ".concat(t.maxWidth,"px)")),e.join(" and ")}var s=n(331),c=n.n(s),u=n(226),d=["lg","md","sm","xs"];function l(t){for(var e=0;et.length)&&(e=t.length);for(var n=0,o=new Array(e);n\n \n \n ".concat("",'\n \n