wealthica-sdk-js 0.0.14 → 0.0.15
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/README.md +2 -3
- package/dist/wealthica.es5.js +4 -3
- package/dist/wealthica.js +4 -3
- package/dist/wealthica.min.js +1 -1
- package/dist/wealthica.min.js.map +1 -1
- package/lib/wealthica.js +4 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -218,7 +218,6 @@ const wealthica = Wealthica.init({
|
|
|
218
218
|
clientId: 'YOUR_CLIENT_ID',
|
|
219
219
|
secret: 'YOUR_CLIENT_SECRET',
|
|
220
220
|
redirectURI: 'YOUR_REDIRECT_URI',
|
|
221
|
-
origin: 'YOUR_SITE_ORIGIN',
|
|
222
221
|
});
|
|
223
222
|
|
|
224
223
|
const user1 = wealthica.login('USER_ID_1');
|
|
@@ -228,13 +227,13 @@ const user2 = wealthica.login('USER_ID_2');
|
|
|
228
227
|
const { url: url2, token } = await user2.getConnectData();
|
|
229
228
|
```
|
|
230
229
|
|
|
231
|
-
#### user.connect({ provider, providers, institutionId, lang, theme, providersPerLine, features })
|
|
230
|
+
#### user.connect({ provider, providers, institutionId, lang, theme, providersPerLine, features, origin })
|
|
232
231
|
|
|
233
232
|
This method starts the Wealthica Connect process inside your webpage/app for user to connect their institution.
|
|
234
233
|
|
|
235
234
|
Connection response are provided via callbacks.
|
|
236
235
|
|
|
237
|
-
This method accepts the same parameters as `user.getConnectData()` except for `redirectURI
|
|
236
|
+
This method accepts the same parameters as `user.getConnectData()` except for `redirectURI` and `state`
|
|
238
237
|
|
|
239
238
|
```javascript
|
|
240
239
|
user.connect({
|
package/dist/wealthica.es5.js
CHANGED
|
@@ -6313,14 +6313,14 @@ var API = /*#__PURE__*/function () {
|
|
|
6313
6313
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6314
6314
|
if (!this.isBrowser) throw new Error('Only supported in Browser.');
|
|
6315
6315
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
6316
|
-
var provider, providers, providerGroups, institutionId, lang, theme, providersPerLine, features, connectionType, _yield$_this$getConne, url, token;
|
|
6316
|
+
var provider, providers, providerGroups, institutionId, lang, theme, providersPerLine, features, connectionType, origin, _yield$_this$getConne, url, token;
|
|
6317
6317
|
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
6318
6318
|
while (1) {
|
|
6319
6319
|
switch (_context5.prev = _context5.next) {
|
|
6320
6320
|
case 0:
|
|
6321
6321
|
_context5.prev = 0;
|
|
6322
6322
|
_this._widgetOpened = true;
|
|
6323
|
-
provider = options.provider, providers = options.providers, providerGroups = options.providerGroups, institutionId = options.institutionId, lang = options.lang, theme = options.theme, providersPerLine = options.providersPerLine, features = options.features, connectionType = options.connectionType;
|
|
6323
|
+
provider = options.provider, providers = options.providers, providerGroups = options.providerGroups, institutionId = options.institutionId, lang = options.lang, theme = options.theme, providersPerLine = options.providersPerLine, features = options.features, connectionType = options.connectionType, origin = options.origin;
|
|
6324
6324
|
_context5.next = 5;
|
|
6325
6325
|
return _this.getConnectData({
|
|
6326
6326
|
provider: provider,
|
|
@@ -6330,7 +6330,8 @@ var API = /*#__PURE__*/function () {
|
|
|
6330
6330
|
lang: lang,
|
|
6331
6331
|
theme: theme,
|
|
6332
6332
|
providersPerLine: providersPerLine,
|
|
6333
|
-
features: features
|
|
6333
|
+
features: features,
|
|
6334
|
+
origin: origin
|
|
6334
6335
|
});
|
|
6335
6336
|
case 5:
|
|
6336
6337
|
_yield$_this$getConne = _context5.sent;
|
package/dist/wealthica.js
CHANGED
|
@@ -6303,14 +6303,14 @@ var API = /*#__PURE__*/function () {
|
|
|
6303
6303
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
6304
6304
|
if (!this.isBrowser) throw new Error('Only supported in Browser.');
|
|
6305
6305
|
_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
6306
|
-
var provider, providers, providerGroups, institutionId, lang, theme, providersPerLine, features, connectionType, _yield$_this$getConne, url, token;
|
|
6306
|
+
var provider, providers, providerGroups, institutionId, lang, theme, providersPerLine, features, connectionType, origin, _yield$_this$getConne, url, token;
|
|
6307
6307
|
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
6308
6308
|
while (1) {
|
|
6309
6309
|
switch (_context5.prev = _context5.next) {
|
|
6310
6310
|
case 0:
|
|
6311
6311
|
_context5.prev = 0;
|
|
6312
6312
|
_this._widgetOpened = true;
|
|
6313
|
-
provider = options.provider, providers = options.providers, providerGroups = options.providerGroups, institutionId = options.institutionId, lang = options.lang, theme = options.theme, providersPerLine = options.providersPerLine, features = options.features, connectionType = options.connectionType;
|
|
6313
|
+
provider = options.provider, providers = options.providers, providerGroups = options.providerGroups, institutionId = options.institutionId, lang = options.lang, theme = options.theme, providersPerLine = options.providersPerLine, features = options.features, connectionType = options.connectionType, origin = options.origin;
|
|
6314
6314
|
_context5.next = 5;
|
|
6315
6315
|
return _this.getConnectData({
|
|
6316
6316
|
provider: provider,
|
|
@@ -6320,7 +6320,8 @@ var API = /*#__PURE__*/function () {
|
|
|
6320
6320
|
lang: lang,
|
|
6321
6321
|
theme: theme,
|
|
6322
6322
|
providersPerLine: providersPerLine,
|
|
6323
|
-
features: features
|
|
6323
|
+
features: features,
|
|
6324
|
+
origin: origin
|
|
6324
6325
|
});
|
|
6325
6326
|
case 5:
|
|
6326
6327
|
_yield$_this$getConne = _context5.sent;
|