You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| serviceId |`myaccount-settings`| true || Open MyAccount |
292
292
| options.view |`authorized-applications`, `change-language`, `email-preferences`, `delete-account`, `update-email`, `update-password`| false || Directly go to the chosen page. If no view is provided, it goes to the top page of MyAccount. |
293
293
294
-
### requestMagicLink
294
+
### requestLoginLink
295
295
296
-
Request for a magic link (password-less login link) to be sent to the guest's email address. Clicking on the link in the email will log a guest in directly to the screen specified by the `magicLinkTo` parameter.
296
+
Request for a password-less login link to be sent to the guest's email address. Clicking on the link in the email will log a guest in directly to the screen specified by the `loginLinkTo` parameter.
297
297
298
298
<h6>Usage:</h6>
299
299
300
300
```javascript
301
-
mtLinkSdk.requestMagicLink(options);
301
+
mtLinkSdk.requestLoginLink(options);
302
302
```
303
303
304
304
| Parameter | Type | Required | Default Value | Description |
305
305
| - | - | - | - | - |
306
306
| options | object | false | Value set during `init`. | Optional parameters. Includes all options in [common options](#common-api-options). |
307
-
| options.magicLinkTo| string | true |`settings` (for mobile view)<p><strong>OR</strong></p>`settings/update-email` (for desktop view) | Redirection to location after login, currently supported locations include:<li>`settings` - Main Moneytree account settings screen.</li><li>`settings/authorized-applications` - List of apps currently connected to Moneytree.</li><li>`settings/change-language` - Change Moneytree account language screen.<li>`settings/email-preferences` - Change Moneytree email preferences screen</li><li>`settings/delete-account` - Delete Moneytree account screen.</li><li>`settings/update-email` - Change Moneytree account email screen.</li><li>`settings/update-password` - Change Moneytree account password screen.</li> |
308
-
| options.email | string | true | Value set during `init`. |Magic link will be sent to this email.<br /><br /><strong>NOTE:</strong> This function will throw an error if both values here and from the [init options](?id=api-init_options) are undefined. |
307
+
| options.loginLinkTo| string | true |`settings` (for mobile view)<p><strong>OR</strong></p>`settings/update-email` (for desktop view) | Redirection to location after login, currently supported locations include:<li>`settings` - Main Moneytree account settings screen.</li><li>`settings/authorized-applications` - List of apps currently connected to Moneytree.</li><li>`settings/change-language` - Change Moneytree account language screen.<li>`settings/email-preferences` - Change Moneytree email preferences screen</li><li>`settings/delete-account` - Delete Moneytree account screen.</li><li>`settings/update-email` - Change Moneytree account email screen.</li><li>`settings/update-password` - Change Moneytree account password screen.</li> |
308
+
| options.email | string | true | Value set during `init`. |Login Link will be sent to this email.<br /><br /><strong>NOTE:</strong> This function will throw an error if both values here and from the [init options](?id=api-init_options) are undefined. |
0 commit comments