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
Copy file name to clipboardExpand all lines: docs/README.md
+32-27Lines changed: 32 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,33 +26,38 @@ const newInstance = new window.MtLinkSdk();
26
26
// e.g: const newInstance = new MtLinkSdk();
27
27
```
28
28
29
-
### Typscript
29
+
### `localStorage`
30
30
31
-
The source also includes Typescript definitions out of the box.
31
+
Ensure your App enables access to `localStorage` otherwise magic link login will not work.
32
+
Since `sessionStorage` is not shared between browser tabs.
32
33
33
34
### Polyfills
34
35
35
36
We use [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) and [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) internally, if you wish to support old browsers (e.g: IE11), make sure to add the necessary polyfills.
36
37
38
+
### Typescript
39
+
40
+
The source also includes Typescript definitions out of the box.
41
+
37
42
## [API](types/classes/MtLinkSdk.html':ignore')
38
43
39
44
The Moneytree LINK Javascript SDK exposes APIs to get guest consent to access financial data, and exchange an authorization grant for an access token.
You can also use the [authorizeUrl](/types/classes/MtLinkSdk.html#authorizeUrl':ignore') method to generate the authorization url without opening it immetiately.
84
+
You can also use the [authorizeUrl](types/classes/MtLinkSdk.html#authorizeUrl':ignore') method to generate the authorization url without opening it immediately.
// after redirect from moneytree back to your app's redirectUri
96
101
consttoken=mtLinkSdk.exchangeToken();
97
102
```
98
103
99
-
You can also use the [onboardUrl](/types/classes/MtLinkSdk.html#onboardUrl':ignore') method to generate the onboard url without opening it immetiately.
104
+
You can also use the [onboardUrl](types/classes/MtLinkSdk.html#onboardUrl':ignore') method to generate the onboard url without opening it immediately.
You can also use the [logoutUrl](/types/classes/MtLinkSdk.html#logoutUrl':ignore') method to generate the logout url without redirecting the user.
121
+
You can also use the [logoutUrl](types/classes/MtLinkSdk.html#logoutUrl':ignore') method to generate the logout url without redirecting the user.
117
122
118
123
### Open Services
119
124
120
-
With the [openService](/types/classes/MtLinkSdk.html#openService':ignore') function you can open Moneytree services directly from your app.
121
-
Alternatively, you can also use [openServiceUrl](/types/classes/MtLinkSdk.html#openServiceUrl':ignore') to generate the url without opening it immetiately.
125
+
With the [openService](types/classes/MtLinkSdk.html#openService':ignore') function you can open Moneytree services directly from your app.
126
+
Alternatively, you can also use [openServiceUrl](types/classes/MtLinkSdk.html#openServiceUrl':ignore') to generate the url without opening it immediately.
Vault has serveral different views with different options for each, view the full documentation [here](/types/classes/MtLinkSdk.html#openService.openService-3':ignore').
144
+
Vault has several different views with different options for each, view the full documentation [here](types/classes/MtLinkSdk.html#openService.openService-3':ignore').
MyAccount has serveral different views with different options for each, view the full documentation [here](/types/classes/MtLinkSdk.html#openService.openService-2':ignore').
161
+
MyAccount has several different views with different options for each, view the full documentation [here](types/classes/MtLinkSdk.html#openService.openService-2':ignore').
0 commit comments