@melio-eng/web-sdk 1.0.27 → 1.0.28
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -209,7 +209,7 @@ class OnboardingFlow extends Flow {
|
|
|
209
209
|
targetQueryParams.push(`externalOrigin=${this.partnerName}`);
|
|
210
210
|
const target = `/welcome?${targetQueryParams.join('&')}`;
|
|
211
211
|
const encodedTarget = encodeURIComponent(target);
|
|
212
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
212
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
@@ -231,7 +231,7 @@ class PayFlow extends Flow {
|
|
|
231
231
|
const billIdsParam = this.billIds.join(',');
|
|
232
232
|
const target = `/external-entries/payment-flow?billIds=${billIdsParam}&externalOrigin=${this.partnerName}`;
|
|
233
233
|
const encodedTarget = encodeURIComponent(target);
|
|
234
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
234
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
@@ -251,7 +251,7 @@ class SettingsFlow extends Flow {
|
|
|
251
251
|
constructFlowUrl(baseUrl) {
|
|
252
252
|
const target = '/view-settings';
|
|
253
253
|
const encodedTarget = encodeURIComponent(target);
|
|
254
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
254
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
255
255
|
}
|
|
256
256
|
}
|
|
257
257
|
class PaymentsDashboardFlow extends Flow {
|
|
@@ -268,7 +268,7 @@ class PaymentsDashboardFlow extends Flow {
|
|
|
268
268
|
constructFlowUrl(baseUrl) {
|
|
269
269
|
const target = '/pay-dashboard/payments';
|
|
270
270
|
const encodedTarget = encodeURIComponent(target);
|
|
271
|
-
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&
|
|
271
|
+
return `${baseUrl}/${this.partnerName}/auth?token=${this.authCode}&redirectUrl=${encodedTarget}`;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
/**
|
package/package.json
CHANGED