@melio-eng/web-sdk 1.0.17-pr.34.f5d0d62 → 1.0.17-pr.34.fd37362
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/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -260,7 +260,7 @@ class InitFlow extends Flow {
|
|
|
260
260
|
token: this.authorizationCode,
|
|
261
261
|
theme: this.partnerName,
|
|
262
262
|
});
|
|
263
|
-
return `${baseUrl}/${this.partnerName}/start?${params.toString()}`;
|
|
263
|
+
return `${baseUrl}/${this.partnerName}/start?${params.toString()}&cdn_branch_override=refresh_token_on_user_ping`;
|
|
264
264
|
}
|
|
265
265
|
setupKeepAlive() {
|
|
266
266
|
this.keepAliveInterval = window.setInterval(() => {
|
|
@@ -294,7 +294,8 @@ export class MelioSDK {
|
|
|
294
294
|
const initFlow = new InitFlow('', // no need container id for init flow as it is created inside the initialization
|
|
295
295
|
{ authCode: authenticationCode, containerId: '' }, this.partnerName, this.environment, this.branchOverride);
|
|
296
296
|
initFlow.initialize();
|
|
297
|
-
|
|
297
|
+
if (options.keepAlive)
|
|
298
|
+
initFlow.setupKeepAlive();
|
|
298
299
|
return initFlow;
|
|
299
300
|
}
|
|
300
301
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melio-eng/web-sdk",
|
|
3
|
-
"version": "1.0.17-pr.34.
|
|
3
|
+
"version": "1.0.17-pr.34.fd37362",
|
|
4
4
|
"description": "Melio Web SDK - Embed core Melio workflows directly into partner UI with minimal effort",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|