@evergis/api 4.1.50 → 4.1.51
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/LICENSE +21 -21
- package/README.md +12 -12
- package/dist/api.esm.js +4 -0
- package/dist/api.esm.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2829,6 +2829,7 @@ class Api extends EventEmitter {
|
|
|
2829
2829
|
window.localStorage.setItem(STORAGE_REFRESH_TOKEN_KEY, refreshTokenResponse.refreshToken);
|
|
2830
2830
|
}
|
|
2831
2831
|
request.headers?.set("Authorization", `Bearer ${refreshTokenResponse.token || ""}`);
|
|
2832
|
+
this.refreshingToken = false;
|
|
2832
2833
|
}
|
|
2833
2834
|
}
|
|
2834
2835
|
catch (error) {
|
|
@@ -2879,6 +2880,9 @@ class Api extends EventEmitter {
|
|
|
2879
2880
|
withCredentials: true,
|
|
2880
2881
|
skipNegotiation: true,
|
|
2881
2882
|
transport: signalr.HttpTransportType.WebSockets,
|
|
2883
|
+
accessTokenFactory: () => {
|
|
2884
|
+
return window.localStorage.getItem(STORAGE_TOKEN_KEY) || "";
|
|
2885
|
+
},
|
|
2882
2886
|
})
|
|
2883
2887
|
.withAutomaticReconnect()
|
|
2884
2888
|
.build()
|