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: src/index.ts
+27-27Lines changed: 27 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ export class MtLinkSdk {
55
55
* Call `init` to initialize the SDK and set default options for API calls.
56
56
*
57
57
* Some LINK APIs can be used without calling `init`.
58
-
* Calls related to OAuth require a client id which can only be set via the `init` function.
58
+
* Calls related to OAuth require a client ID which can only be set via the `init` function.
59
59
* These APIs include:
60
60
* - {@link authorize}
61
61
* - {@link onboard}
@@ -91,7 +91,7 @@ export class MtLinkSdk {
91
91
};
92
92
}
93
93
/**
94
-
* Use this method to send a guest identifier to Moneytree so that Moneytree can forward it as `saml_subject_id` parameter
94
+
* Use this method to send a user identifier to Moneytree so that Moneytree can forward it as `saml_subject_id` parameter
95
95
* to the Identity Provider (IdP) via the SAMLRequest during SAML SSO flows. See the [SAML SSO documentation for details](https://docs.link.getmoneytree.com/docs/saml-introduction#saml-subject-identifier).
96
96
*
97
97
* This parameter can be set during {@link init} or changed on a request-by-request basis with this method.
@@ -102,19 +102,19 @@ export class MtLinkSdk {
102
102
}
103
103
104
104
/**
105
-
* OAuth authorization method to request guest consent to access data via the [Link API](https://getmoneytree.com/jp/link/about).
105
+
* OAuth authorization method to request user consent to access data via the [Link API](https://getmoneytree.com/jp/link/about).
106
106
*
107
107
* The only supported flow is authorization code grant with PKCE [PKCE](https://auth0.com/docs/flows/concepts/auth-code-pkce)
108
-
* If the user is not logged in yet this will show the login screen and redirect the guest to the consent screen after they log in.
109
-
* After the guest consents, they will be redirected to the redirect URI with an authorization code.
110
-
* If the user is already logged and has granted consent in the redirection happens immediately.
108
+
* If the user is not logged in yet this will show the login screen and redirect the user to the consent screen after they log in.
109
+
* After the user consents, they will be redirected to the redirect URI with an authorization code.
110
+
* If the user is already logged in and has granted consent in the redirection happens immediately.
111
111
*
112
-
* You can pass the {@link AuthorizeOptions.forceLogout} option to force the guest to log in, even if they have an active session.
112
+
* You can pass the {@link AuthorizeOptions.forceLogout} option to force the user to log in, even if they have an active session.
113
113
*
114
114
* You can also choose to display the sign up form when the user is not logged in yet by setting the {@link AuthorizeOptions.authAction} option.
115
115
*
116
116
* @remark
117
-
* You must initialize the SDK via the {@link init} before calling this API.
117
+
* You must initialize the SDK via {@link init} before calling this API.
118
118
*
119
119
* @example
120
120
* ```javascript
@@ -126,26 +126,26 @@ export class MtLinkSdk {
126
126
}
127
127
128
128
/**
129
-
* This method generates an URL for OAuth authorization that requires guest consent to access data via [Link API](https://getmoneytree.com/jp/link/about).
129
+
* This method generates a URL for OAuth authorization that requires user consent to access data via [Link API](https://getmoneytree.com/jp/link/about).
130
130
*
131
131
* See {@link authorize} API for authorization details. This API has exactly the same parameters as {@link authorize},
132
-
* the only difference is that it returns an URL instead of opening immediately with `window.open`.
132
+
* the only difference is that it returns a URL instead of opening immediately with `window.open`.
* Email used to pre-fill the email field in login or sign up or form.
29
+
* Email address to pre-fill the email field in login or sign up or form.
30
30
*
31
31
* Set the default value via {@link MtLinkSdk.init}
32
32
*/
33
33
email?: string;
34
34
/**
35
-
* A redirection URL for redirecting a guest back to in the following condition:
36
-
* - Guest clicks on `Back to [App Name]` button in any Moneytree screen.
37
-
* - Guest refuses to give consent to access permission in the consent screen.
38
-
* - Guest logs out from Moneytree via an app with this client id
39
-
* - Revoke an app's consent from settings screen opened via an app with this client id
35
+
* A redirection URL for redirecting a user back to in one of the following conditions:
36
+
* - User clicks on `Back to [App Name]` button in any Moneytree screen.
37
+
* - User refuses to give consent to access permission in the consent screen.
38
+
* - User logs out from Moneytree via an app with this client ID
39
+
* - User revokes consent from settings screen opened via an app with this client ID
40
40
*
41
-
* ⚠️ No `Back to [App Name]` button will be shown if this value is not set, and any of the actions mentioned above will redirect the guest back to login screen by default.
41
+
* ⚠️ No `Back to [App Name]` button will be shown if this value is not set, and any of the actions mentioned above will redirect the user back to the login screen by default.
42
42
*
43
43
* Set the default value via {@link MtLinkSdk.init}
44
44
*/
45
45
backTo?: string;
46
46
/**
47
-
* Show login or sign up screen when a session does not exist during an {@link MtLinkSdk.authorize} call.
47
+
* Show the login or sign up screen when a session does not exist during an {@link MtLinkSdk.authorize} call.
48
48
*
49
49
* Set default value via {@link MtLinkSdk.init}
50
50
*
51
51
* @defaultValue 'login'
52
52
*/
53
53
authAction?: AuthAction;
54
54
/**
55
-
* If you wish to disable the login to sign up form toggle button and vice-versa in the auth screen, set this to `false`.
55
+
* If you wish to disable the `Login to Sign up` form toggle button and vice-versa in the auth screen, set this to `false`.
* The state parameter for OAuth flows, see [here](https://auth0.com/docs/protocols/oauth2/oauth-state) for more details.
196
196
*
197
-
* If you generates an identifier for the OAuth authorization on your server make sure to set this value explicitly so
198
-
* that you can use to acquire the access token after the OAuth redirect occurs.
197
+
* If you generate an identifier for the OAuth authorization on your server make sure to set this value explicitly so
198
+
* that you can use it to acquire the access token after the OAuth redirect occurs.
199
199
*
200
200
* The default value is a randomly generated [uuid](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)), or set via {@link MtLinkSdk.init}
0 commit comments