stream-connect-sdk 0.7.6 → 0.8.0
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/CHANGELOG.md +279 -0
- package/README.md +72 -111
- package/docs/README.md +52 -0
- package/docs/client-usage.md +405 -0
- package/docs/connect-access-token-screenshots/connect-access-token-pattern.png +0 -0
- package/docs/connect-access-token.md +71 -0
- package/docs/error.md +149 -0
- package/docs/faq.md +77 -0
- package/docs/fix-credentials/select-enroll-widget.png +0 -0
- package/docs/fix-credentials.md +151 -0
- package/docs/flow-screenshots/choose-payer.png +0 -0
- package/docs/flow-screenshots/enter-credentials.png +0 -0
- package/docs/flow-screenshots/pop-up.png +0 -0
- package/docs/flow-screenshots/realtime-validation.png +0 -0
- package/docs/flow-screenshots/terms-of-service.png +0 -0
- package/docs/headless.md +107 -0
- package/docs/interop-screenshots/Interop SDK Flow Legacy.png +0 -0
- package/docs/interop-screenshots/InteropSDKFlow.png +0 -0
- package/docs/interop.md +38 -0
- package/docs/migration-0.7-to-0.8.md +110 -0
- package/docs/quickstart-screenshots/demo-init-page.png +0 -0
- package/docs/quickstart-screenshots/employer-key-page.png +0 -0
- package/docs/quickstart-screenshots/error-init-page.png +0 -0
- package/docs/quickstart.md +247 -0
- package/docs/sdk-flow.md +43 -0
- package/docs/theme.md +47 -0
- package/docs/two-factor.md +137 -0
- package/package.json +67 -79
- package/sdk-headless.js +2 -0
- package/sdk.js +1 -1
- package/.babelrc +0 -4
- package/.rgignore +0 -1
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
|
|
2
|
+
# Client Usage
|
|
3
|
+
We have decided that the best possible way to implement this SDK is a simple config pattern. A prospective user will communicate with us to receive an SDK sdkToken as well as employer system keys.
|
|
4
|
+
|
|
5
|
+
A mock implementation might look something like the following:
|
|
6
|
+
|
|
7
|
+
Using TPAStream as a CDN
|
|
8
|
+
```html
|
|
9
|
+
<script src="https://app.tpastream.com/static/js/sdk.js"></script>
|
|
10
|
+
<script>
|
|
11
|
+
window.StreamConnect({
|
|
12
|
+
el: '#react-hook', // CSS selector; the SDK renders under this element.
|
|
13
|
+
employer: {
|
|
14
|
+
systemKey: 'some-system-key',
|
|
15
|
+
vendor: 'internal',
|
|
16
|
+
name: 'some-employer-name'
|
|
17
|
+
},
|
|
18
|
+
user: {
|
|
19
|
+
firstName: 'Joe',
|
|
20
|
+
lastName: 'Sajor',
|
|
21
|
+
email: 'some-email@place.com'
|
|
22
|
+
},
|
|
23
|
+
isDemo: false,
|
|
24
|
+
sdkToken: 'VeryLegitKey',
|
|
25
|
+
// Optional 0.8 additions:
|
|
26
|
+
theme: { primaryColor: '#2563eb' },
|
|
27
|
+
enablePatientAccessAPI: true,
|
|
28
|
+
// Behavior toggles (defaults shown):
|
|
29
|
+
realTimeVerification: true,
|
|
30
|
+
renderChoosePayer: true,
|
|
31
|
+
renderPayerForm: true,
|
|
32
|
+
renderEndWidget: true,
|
|
33
|
+
// Lifecycle callbacks:
|
|
34
|
+
doneGetSDK: ({ user, payers, tenant, employer }) => {},
|
|
35
|
+
doneChoosePayer: () => {},
|
|
36
|
+
doneTermsOfService: () => {},
|
|
37
|
+
doneCreatedForm: () => {},
|
|
38
|
+
donePostCredentials: ({ params }) => {},
|
|
39
|
+
doneRealTime: () => {},
|
|
40
|
+
doneEasyEnroll: ({ employer, payer, tenant, policyHolder, user }) => {},
|
|
41
|
+
donePopUp: () => {},
|
|
42
|
+
handleFormErrors: (error, {response, request, config}) => {}
|
|
43
|
+
})
|
|
44
|
+
</script>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
As shown above the SDK is mounted by calling `window.StreamConnect({})` and passing in the desired parameters.
|
|
48
|
+
|
|
49
|
+
As of SDK version 0.4.7 the CDN provider is versioned. Past versions remain available indefinitely.
|
|
50
|
+
* The version is selected by the `src` attribute on your script tag.
|
|
51
|
+
* `"https://app.tpastream.com/static/js/sdk.js"` -> Latest published version of the SDK.
|
|
52
|
+
* `"https://app.tpastream.com/static/js/sdk-v-<VersionNumber>.js"` -> A specific version. Examples:
|
|
53
|
+
* `"https://app.tpastream.com/static/js/sdk-v-0.8.0.js"` (current 0.8)
|
|
54
|
+
* `"https://app.tpastream.com/static/js/sdk-v-0.7.7.js"` (last 0.7.x)
|
|
55
|
+
|
|
56
|
+
NPM package
|
|
57
|
+
```javascript
|
|
58
|
+
|
|
59
|
+
// Install with NPM
|
|
60
|
+
npm i stream-connect-sdk
|
|
61
|
+
|
|
62
|
+
import StreamConnect from 'stream-connect-sdk';
|
|
63
|
+
|
|
64
|
+
StreamConnect({
|
|
65
|
+
el: '#react-hook',
|
|
66
|
+
isDemo: true
|
|
67
|
+
});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### * Are required
|
|
71
|
+
|
|
72
|
+
| Field | Description | Type | Example | Default |
|
|
73
|
+
|-------------------------------|---------------------------------------------------------------------------------------------------------|---------|-------------------------------------------------------|-----------|
|
|
74
|
+
| `el`* | A CSS selector for where you want the sdk to render: all items will render under this element | String | `el: '#react-hook'` | N\A |
|
|
75
|
+
| `tenant` | The tenant configuration for this sdk instance. **Only needed if your token is configured to many tenants. Such a configuration will be made clear when TPAStream provides a token.** | Object | `tenant: {}` | `{}` |
|
|
76
|
+
| `tenant.vendor` | The `code` for the specific vendor_tenant configured for this sdk-token. This is usually `internal` | String | `tenant: { vendor: 'internal' }` | `internal`|
|
|
77
|
+
| `tenant.systemKey` | The unique systemKey configured for your selected tenant on the selected vendor. | String | `tenant: { systemKey: 'uniquekey' }` | N\A |
|
|
78
|
+
| `employer`* | The employer configuration for this sdk instance. Employers will be created if they don't exist already | Object | `employer: {}` | N\A |
|
|
79
|
+
| `employer.vendor`* | The `code` for the specific vendor your employer is configured to. | String | `employer: { vendor: 'internal' }` | `internal`|
|
|
80
|
+
| `employer.systemKey`* | The unique systemKey configured for your selected employer on said vendor | String | `employer: { systemKey: 'ekey' }` | N\A |
|
|
81
|
+
| `employer.name` | Name of the employer. *Only needed if the employer doesn't already exist* | String | `employer: { name: 'some-employer-name' }` | N\A |
|
|
82
|
+
| `user`* | The user configuration. These are created automatically if they don't exist in our system. Think of users as employees going through and entering their payer credentials into our system. This is **not** an Implementors account on TPAStream (IE youremail@email.com). If you wish to set-up the SDK for the first time try using something like `youremail+testingsdk@email.com` in order to get the ball rolling. | Object | `user: {}` | N\A |
|
|
83
|
+
| `user.firstName`* | The user's first name | String | `user: { firstName: 'Name' }` | N\A |
|
|
84
|
+
| `user.lastName`* | The user's last name | String | `user: { lastName: 'name' }` | N\A |
|
|
85
|
+
| `user.email`* | The user's email. | String | `user: { email: 'email@email.com' }` | N\A |
|
|
86
|
+
| `user.memberSystemKey` | A unique key for an implementer to identify for their system. | String | `user: { memberSystemKey: 'some-key' }` | N\A |
|
|
87
|
+
| `user.phoneNumber` | The user's phone number | String | `user: { phoneNumber: '000-000-0000' }` | N\A |
|
|
88
|
+
| `user.dateOfBirth` | The user's date of birth | String | `user: { dateOfBirth: 'YYYY-MM-DD' }` | N\A |
|
|
89
|
+
| `sdkToken`* | The SDK Token. This has to be configured before-hand. It isn't a secret. | String | `sdkToken: 'VeryLegitKey'` | N\A |
|
|
90
|
+
| `apiToken`* | The SDK token. Same value as `sdkToken`; pass either. If both are set, `apiToken` wins. Not a secret. | String | `apiToken: 'VeryLegitKey'` | N\A |
|
|
91
|
+
| `connectAccessToken` | A generated token if advanced security is enabled. See [Connect Access Token](./connect-access-token.md). The 0.8 SDK also accepts a fresh `?accessToken=...` on the URL after a Patient Access API redirect; if present, it overrides this option for that load and is stripped from the URL via `history.replaceState`. | String | `connectAccessToken: ''` | N\A |
|
|
92
|
+
| `includePayerBlogs` | Enable optional payer updates blog on each enrollment form. Has some additional info about the payer. | Boolean | `includePayerBlogs: false` | `false` |
|
|
93
|
+
| `theme` | Branding overrides applied as scoped CSS variables on the SDK root subtree. See [Theme](./theme.md). | Object | `theme: { primaryColor: '#2563eb' }` | `{}` |
|
|
94
|
+
| `theme.primaryColor` | Hex color (e.g. `#2563eb`) used to recolor buttons, links, focus rings, and progress bars. Scoped to the SDK subtree; will not bleed into host-page CSS. | String | `theme: { primaryColor: '#2563eb' }` | (built-in indigo) |
|
|
95
|
+
| `enablePatientAccessAPI` | **Default changed in 0.8 to `true`.** Enables Patient Access API payers (carriers that authenticate via a redirect to the carrier website rather than collecting credentials inline). With this flag on (the default), PAA-routed payers take the OAuth-popup branch; with it off, they fall through to the raw credentials form which exposes an `interoperability_refresh_token` field no real user can fill. See [Interop](./interop.md) and the [0.7→0.8 migration note](./migration-0.7-to-0.8.md#7-enablepatientaccessapi-default-flipped-to-true). | Boolean | `enablePatientAccessAPI: false` | `true` (was `false` in 0.7.x) |
|
|
96
|
+
| `enablePatientAccessAPISinglePage` | Same as `enablePatientAccessAPI` but performs the redirect in the current tab instead of opening a new window. If true, takes precedence over `enablePatientAccessAPI`. | Boolean | `enablePatientAccessAPISinglePage: true` | `false` |
|
|
97
|
+
| `enableInterop` | **Deprecated** alias for `enablePatientAccessAPI`. Still works indefinitely; using it logs a one-time console warning. | Boolean | `enableInterop: true` | `false` |
|
|
98
|
+
| `enableInteropSinglePage` | **Deprecated** alias for `enablePatientAccessAPISinglePage`. Same behavior. | Boolean | `enableInteropSinglePage: true` | `false` |
|
|
99
|
+
| `forceEndStep` | Skip directly to the end widget on load. Accepts the legacy boolean form (`true` -> end widget) and the explicit step-number form (`5` is the FinishedEasyEnroll step). The SDK also auto-applies this when the URL contains `?forceTPAStreamSdkEnd=1` (the flag is then stripped from the address bar). | Boolean \| Number | `forceEndStep: true` or `forceEndStep: 5` | `false` |
|
|
100
|
+
| `entrySdkStateId` | Overrides the SDK-generated state id. Used to preserve SDK flow logs across a `webViewDelegation` round trip. Do not set otherwise. | String | `entrySdkStateId: 'somestateid'` | N\A |
|
|
101
|
+
| `webViewDelegation` | Enables redirection delegation to a top-level webview hosting the SDK. The interop final redirect goes to `/patientaccessapi/sdk-interop-done-delegation/<string:sdk_state_id>/<int:ph_id>` for the host app to parse instead of `sdk_interop_done` or `window.location`. | Boolean | `webViewDelegation: true` | `false` |
|
|
102
|
+
| `isDemo` | Tells the SDK not to work with real data; useful while iterating on styling. Demo mode cannot save or validate credentials. | Boolean | `isDemo: true` | `false` |
|
|
103
|
+
| `realTimeVerification` | Enables credential-validation UI feedback. Default is `true` (unchanged since 0.7.7). The 0.8 SDK uses a Server-Sent Events stream instead of the 0.7 polling loop, and validation renders in the non-blocking hero + corner-panel UI rather than blocking the carrier picker. Pass `false` to submit and immediately advance with no validation UI. | Boolean | `realTimeVerification: true` | `true` |
|
|
104
|
+
| `realtimeTimeout` | **Deprecated in 0.8.** Was the polling-loop timeout in 0.7.x. The 0.8 SDK uses SSE with a server-side stream deadline (~10 minutes) and no longer reads this option. Accepted for back-compat but has no effect. | Number | `realtimeTimeout: 600` | n/a |
|
|
105
|
+
| `renderChoosePayer` | Render the built-in choose-payer widget. If `false`, the widget is omitted and you must drive payer selection from the `doneChoosePayer` callback. | Boolean | `renderChoosePayer: false` | `true` |
|
|
106
|
+
| `renderPayerForm` | Render the built-in credentials form. If `false`, drive it from `doneCreatedForm`. | Boolean | `renderPayerForm: false` | `true` |
|
|
107
|
+
| `renderEndWidget` | Render the built-in end widget. If `false`, drive it from `doneEasyEnroll`. | Boolean | `renderEndWidget: false` | `true` |
|
|
108
|
+
| `userSchema` | **Changed in 0.8.** In 0.7.x this drove `react-jsonschema-form` UI-schema customization for the credentials form. `react-jsonschema-form` was removed in 0.8, so `userSchema` no longer affects rendering; the object is forwarded into the credential-submit payload for downstream consumers, and the SDK emits a one-time console warning when set. File an issue if you relied on UI-schema-driven extra fields. | Object | `userSchema: {}` | `{}` |
|
|
109
|
+
| `fixCredentials` | **Deprecated in 0.8.** No longer needed: [fix-credentials mode](./fix-credentials.md) is now derived automatically from the presence of `connectAccessToken`. Accepted for back-compat and ignored; passing it logs a one-time console deprecation warning. | Boolean | `fixCredentials: true` | n/a |
|
|
110
|
+
| `maxRetries` | **Deprecated in 0.8.** Was the retry count for the 0.7.x polling validation loop. The 0.8 SDK uses SSE with no client-side retry knob; this option is accepted for back-compat but has no effect. | Number | `maxRetries: 3` | n/a |
|
|
111
|
+
| `_overrideBaseUrl` | Override the API base URL the SDK talks to. Used by the `/sdk-test` sandbox and integration tests; do not set in production. | String | `_overrideBaseUrl: 'https://stevedev.tpastream.com'` | (`app.tpastream.com`) |
|
|
112
|
+
|
|
113
|
+
## Redirect query parameters (Patient Access API)
|
|
114
|
+
|
|
115
|
+
When the Patient Access API flow returns the user from a carrier site back to the page hosting the SDK, the redirect URL can carry two query parameters that the 0.8 SDK reads automatically on init:
|
|
116
|
+
|
|
117
|
+
* **`?accessToken=...`**: a fresh connect-access token minted by `app.tpastream.com` after the carrier redirect completes. The SDK reads it on load, uses it for the remainder of the session, and (regardless of whether `connectAccessToken` was already set in the init object) takes the URL value as the freshest. The token is single-use.
|
|
118
|
+
* **`?forceTPAStreamSdkEnd=1`**: set by the redirect URL the SDK constructs when `enablePatientAccessAPISinglePage` is `true`. Tells this load to skip straight to the end widget instead of restarting at choose-payer.
|
|
119
|
+
|
|
120
|
+
Both parameters are stripped from the URL via `history.replaceState` after the SDK reads them. `replaceState` (not `pushState`) is used deliberately: the back button cannot restore the original URL, so the single-use access token cannot leak via history navigation or browser autofill.
|
|
121
|
+
|
|
122
|
+
> **Referrer caveat:** `replaceState` runs only after the SDK script has loaded and executed. Any resources, third-party scripts, or analytics beacons fetched *earlier* in the page lifecycle can still receive the token-bearing URL in the `Referer` header. For the full referrer-protection story (host-page `<meta name="referrer">` settings, CSP `Content-Security-Policy: referrer`, and the redirect-URL hygiene we recommend), see the Pre-SDK referrer caveat in [`connect-access-token.md`](./connect-access-token.md).
|
|
123
|
+
|
|
124
|
+
You do not need to handle these parameters yourself; this section documents them so that integrators who inspect the URL or rely on `popstate` events know what to expect.
|
|
125
|
+
|
|
126
|
+
## Callbacks
|
|
127
|
+
The main way an implementor will be interacting and modifying the `stream-connect-js-sdk` is via our various callbacks placed at key flowpoints of the SDK. In these callbacks the implementors are recommended to use `JavaScript` to style the various widgets as well as handle any additional custom logic which they deem necessary. These callbacks also include various amounts of information which can be helpful when trying to integrate fully with the TPAStream system.
|
|
128
|
+
|
|
129
|
+
### `doneGetSDK`
|
|
130
|
+
`doneGetSDK` is the first callback to be called in the SDK flow. It occurs when the system has finished its initial request to TPAStream systems.
|
|
131
|
+
|
|
132
|
+
Data passed back -- These objects will have various information from the SDK. An Implementor might be concerned with any of the below.
|
|
133
|
+
* `user`
|
|
134
|
+
* `email` -- You should see that this email is the same as the one you set in configuration. The SDK can interface with a TPAStream user to create policy_holders via email and token.
|
|
135
|
+
* `user_id` -- The unique identifier TPAStream uses for this user.
|
|
136
|
+
* `policy_holders` -- This will list out all of the policy_holders associated with the user. You can think of these as the saved credentials per carrier. Data passed back here will be limited.
|
|
137
|
+
* `payer_id` -- The ID for the specific payer these credentials exist for.
|
|
138
|
+
* `id` and `policy_holder_id` -- The unique identifier TPAStream uses for this set of credentials. If you implement any of the *TPAStream Webhooks* you will find this info useful for association.
|
|
139
|
+
* `tenant`
|
|
140
|
+
* `id` and `tenant_id`
|
|
141
|
+
* `name`
|
|
142
|
+
* `terms_of_use_message` -- This is configured at the tenant level. It allows specific terms of service messages per tenant. If you implement a custom widget you might be concerned with this data.
|
|
143
|
+
* `payers` -- List of Payers. If implementing a custom choose-payer widget (`renderChoosePayer` is `false`) an implementor should use this data in the `doneChoosePayer.choosePayer` callback.
|
|
144
|
+
* `id` and `payer_id`
|
|
145
|
+
* `logo_url`
|
|
146
|
+
* `name`
|
|
147
|
+
* `employer`
|
|
148
|
+
* `id` and `employer_id`
|
|
149
|
+
* `name`
|
|
150
|
+
* `payers` -- The preferred payers to use on an employer. This can be configured in the TPAStream App.
|
|
151
|
+
* `show_all_payers_in_easy_enroll` -- When set `true` all payers supported in TPAStream will render as options in the widget. `true` is the default for an employer generated by the SDK
|
|
152
|
+
* `support_email_derived` -- Configured within the TPAStream App.
|
|
153
|
+
|
|
154
|
+
Example Usage:
|
|
155
|
+
```javascript
|
|
156
|
+
StreamConnect({
|
|
157
|
+
el: '#react-hook',
|
|
158
|
+
...
|
|
159
|
+
doneGetSDK: ({ user, payers, tenant, employer }) => {
|
|
160
|
+
// Do something with this data
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### `doneSelectEnrollProcess`
|
|
166
|
+
`doneSelectEnrollProcess` is fired right after doneGetSDK when the SDK is in member-portal mode (a `connectAccessToken` was supplied at init). This is primarily meant for styling the two buttons.
|
|
167
|
+
|
|
168
|
+
Example Usage:
|
|
169
|
+
```javascript
|
|
170
|
+
StreamConnect({
|
|
171
|
+
el: '#react-hook',
|
|
172
|
+
...
|
|
173
|
+
doneSelectEnrollProcess: () => {
|
|
174
|
+
// Do some styling
|
|
175
|
+
},
|
|
176
|
+
});
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
### `doneFixCredentials`
|
|
180
|
+
`doneFixCredentials` is fired after the Fix Credentials card is clicked in the select-enroll flow. This only fires in member-portal mode (when a `connectAccessToken` was supplied at init).
|
|
181
|
+
|
|
182
|
+
Example Usage:
|
|
183
|
+
```javascript
|
|
184
|
+
StreamConnect({
|
|
185
|
+
el: '#react-hook',
|
|
186
|
+
...
|
|
187
|
+
doneFixCredentials: () => {
|
|
188
|
+
// Do some styling
|
|
189
|
+
},
|
|
190
|
+
});
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### `handleInitErrors`
|
|
194
|
+
`handleInitErrors` is a callback which runs whenever there was a configuraiton error with the SDK. This configuration error will have a message attached to it explaining to an implementor what the problem with the configuration was. During this callback an implementor could add custom logic to handle custom messaging for the user who might be experiencing this error.
|
|
195
|
+
Example Usage:
|
|
196
|
+
```javascript
|
|
197
|
+
StreamConnect({
|
|
198
|
+
el: '#react-hook',
|
|
199
|
+
...
|
|
200
|
+
handleInitErrors: (error) => {
|
|
201
|
+
// Do something with this data
|
|
202
|
+
},
|
|
203
|
+
});
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### `doneChoosePayer`
|
|
207
|
+
`doneChoosePayer` is the second callback to be called in the SDK flow. It occurs when the system has finished rendering the choose-payer widget. If the default widget is enabled then there are no parameters passed back into it. Instead implementors will be using this callback to style the default widget to their liking. This may take a little bit of effort depending on how your system looks and feels. It is best to worry about these changes while setting `isDemo` equal to `true` so that you can do so without worrying about creating data.
|
|
208
|
+
|
|
209
|
+
If `renderChoosePayer: false` then this callback now passes back the params necessary for an implementor to create their own completely custom widget.
|
|
210
|
+
* `choosePayer` -- This is a `javascript function`. Calling this will render the next widget. On a custom implementation you should have this as the select option.
|
|
211
|
+
Accepted Properties below
|
|
212
|
+
* `payer` -- This is an `object` value. This object should be from `doneGetSDK.streamPayers`
|
|
213
|
+
* An example call would look like `choosePayer({ payer: streamPayers[some_choosen_index] })`
|
|
214
|
+
* `usedPayers` -- This is a list of `payer_id`s. These ids are for payers which already have credentials associated to them.
|
|
215
|
+
* `dropdown` -- If this value is `true` then the SDK will intend for a dropdown of all payers to be used. This value is the same as `doneGetSDK.employer.show_all_payers_in_easy_enroll`
|
|
216
|
+
* `streamPayers` -- A list of all payers for this SDK instance based on employer. This will be the same as `doneGetSDK.streamPayers`
|
|
217
|
+
|
|
218
|
+
Example Usage:
|
|
219
|
+
```javascript
|
|
220
|
+
StreamConnect({
|
|
221
|
+
el: '#react-hook',
|
|
222
|
+
...
|
|
223
|
+
renderChoosePayer: false, // If this is true then there will be no data passed back to doneChoosePayer
|
|
224
|
+
doneChoosePayer: ({ choosePayer, usedPayers, dropdown, streamPayers }) => {
|
|
225
|
+
const selectPayer = (payerId) => {
|
|
226
|
+
hideCustomWidget();
|
|
227
|
+
choosePayer({ payer: streamPayers.find(p => p.id === payerId)});
|
|
228
|
+
}
|
|
229
|
+
/*
|
|
230
|
+
Here this function would do some stuff to render your custom widget.
|
|
231
|
+
selectPayer will be called when a payer is chosen by the user. That will in turn pass a payer ID back to the func.
|
|
232
|
+
That will in turn pick a payer from streamPayers and pass it to choose payer. When choose payer is called. The
|
|
233
|
+
Next SDK widget will render nested inside #react-hook
|
|
234
|
+
*/
|
|
235
|
+
renderCustomWidget({ carriers: streamPayers, carriersWithCredentials: usedPayers, selectPayer: selectPayer })
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
### `doneCreatedForm`
|
|
241
|
+
`doneCreatedForm` is the third callback to be called in the SDK flow. It occurs when the system finishes render the specific enrollment form for a carrier. This callback is purely used by the implementor for styling the form via JavaScript.
|
|
242
|
+
|
|
243
|
+
If `renderPayerForm: false` then this callback now passes back the params necessary for an implementor to create their own completely custom widget.
|
|
244
|
+
* `formJsonSchema` -- Provides a JS object which contains the configuration of the forms. Follows [Json Schema Form](https://github.com/json-schema-form) configuration.
|
|
245
|
+
* Within this schema you will find all the security questions for a given payer as well as lots of other values and requirements.
|
|
246
|
+
* `returnToChoosePayer` -- When called it will reset the `el` which the SDK is hooked into and re-render the ChoosePayer widget.
|
|
247
|
+
* An example call would look like `returnToChoosePayer();`
|
|
248
|
+
* `streamPayer` -- The carrier/payer object associated with the form and the credentials to be implemented.
|
|
249
|
+
* `streamTenant` -- The tenant object the SDK and credentials it will be associated. This can be used to adjust text on your widget.
|
|
250
|
+
* `tenantTerms` -- The custom terms of service configured by the Tenant.
|
|
251
|
+
* `toggleTermsOfUse` -- renders the terms of use widget.
|
|
252
|
+
* An example call would look like `toggleTermsOfUse();`
|
|
253
|
+
* `validateCreds` -- Function which will submit the values of the form and then begin the realtime validation process.
|
|
254
|
+
* `params` -- The values from the form to be submitted.
|
|
255
|
+
* An example call would look like `validateCreds({ params: formValues });`
|
|
256
|
+
|
|
257
|
+
Example Usage:
|
|
258
|
+
```javascript
|
|
259
|
+
StreamConnect({
|
|
260
|
+
el: '#react-hook',
|
|
261
|
+
...
|
|
262
|
+
doneCreatedForm: ({ formJsonSchema, returnToChoosePayer, streamPayer, streamTenant, tenantTerms, toggleTermsOfUse, validateCreds}) => {},
|
|
263
|
+
});
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
### `doneTermsOfService`
|
|
267
|
+
`doneTermsOfService` Callback occurs when the user clicks on the TPAStream terms of service link. This callback is purely used by the implementor for styling the form via JavaScript.
|
|
268
|
+
|
|
269
|
+
Example Usage:
|
|
270
|
+
```javascript
|
|
271
|
+
StreamConnect({
|
|
272
|
+
el: '#react-hook',
|
|
273
|
+
...
|
|
274
|
+
doneTermsOfService: () => {
|
|
275
|
+
// Do some styling
|
|
276
|
+
},
|
|
277
|
+
});
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### `donePopUp`
|
|
281
|
+
`donePopUp` Callback occurs when the user clicks on carrier pop-up. This callback is purely used by the implementor for styling the form via JavaScript.
|
|
282
|
+
|
|
283
|
+
Example Usage:
|
|
284
|
+
```javascript
|
|
285
|
+
StreamConnect({
|
|
286
|
+
el: '#react-hook',
|
|
287
|
+
...
|
|
288
|
+
donePopUp: () => {
|
|
289
|
+
// Do some styling
|
|
290
|
+
},
|
|
291
|
+
});
|
|
292
|
+
```
|
|
293
|
+
|
|
294
|
+
### `donePostCredentials`
|
|
295
|
+
`donePostCredentials` fires when the user submits the credentials form and the SDK is posting the new creds. The callback gives implementors a chance to intercept the post payload (for example to persist to your own backend) before the SDK moves on to the validation step.
|
|
296
|
+
|
|
297
|
+
These values vary by carrier. Common fields:
|
|
298
|
+
* `params`
|
|
299
|
+
* `username`
|
|
300
|
+
* `password`
|
|
301
|
+
* `date_of_birth`
|
|
302
|
+
* `termsAndServices` and `accept` -- The user accepted the terms of use
|
|
303
|
+
* `payer_id`
|
|
304
|
+
* `tenants_accept` -- (List) Whether or not the user accepted the tenants terms of use
|
|
305
|
+
* `tenantAcknowledgement` -- Whether or not the user accepted the sending of their claims to the tenant.
|
|
306
|
+
* `security_question_first` -- First security question answer
|
|
307
|
+
* `security_question_first_choice`
|
|
308
|
+
* `security_question_second`
|
|
309
|
+
* `security_question_second_choice`
|
|
310
|
+
* `security_question_third`
|
|
311
|
+
* `security_question_third_choice`
|
|
312
|
+
|
|
313
|
+
In 0.8, the credential-submit response also includes a `task_token` (a short-lived task-scoped JWT bound to the validation task) that the SDK uses internally to subscribe to the `/v3/sdk/progress/<task_id>/stream` SSE channel. Implementors do not need to handle the token themselves; the SDK uses it transparently. The token is audience-locked to `sdk:sse:progress`, valid for 10 minutes, and tied to the submitting user.
|
|
314
|
+
|
|
315
|
+
Example Usage:
|
|
316
|
+
```javascript
|
|
317
|
+
StreamConnect({
|
|
318
|
+
el: '#react-hook',
|
|
319
|
+
...
|
|
320
|
+
donePostCredentials: ({ params }) => {
|
|
321
|
+
// Save the params to your system
|
|
322
|
+
saveParams(params);
|
|
323
|
+
},
|
|
324
|
+
});
|
|
325
|
+
```
|
|
326
|
+
|
|
327
|
+
### `handleFormErrors`
|
|
328
|
+
`handleFormErrors` Callback occurs when there was an issue submiting and saving the users credentials. While the SDK handles these errors and their presentation to the user, implementors might want additional info around these errors in order to better tune the SDK.
|
|
329
|
+
|
|
330
|
+
This information can be obtuse. Its use may vary. Most implementors prefer to save this data in order to create info on what issues the users may have with saving.
|
|
331
|
+
* `error`
|
|
332
|
+
* `error_parts`
|
|
333
|
+
* `response`
|
|
334
|
+
* `request`
|
|
335
|
+
* `config`
|
|
336
|
+
|
|
337
|
+
Example Usage:
|
|
338
|
+
```javascript
|
|
339
|
+
StreamConnect({
|
|
340
|
+
el: '#react-hook',
|
|
341
|
+
...
|
|
342
|
+
handleFormErrors: (error, {response, request, config}) => {
|
|
343
|
+
// Save the params to your system
|
|
344
|
+
console.log("Error Response -- Saving error to backend for logging purposes...");
|
|
345
|
+
console.log(response);
|
|
346
|
+
saveError(error);
|
|
347
|
+
},
|
|
348
|
+
});
|
|
349
|
+
```
|
|
350
|
+
|
|
351
|
+
### `doneRealTime`
|
|
352
|
+
`doneRealTime` Callback occurs when the system finishes rendering the realtime-validation widget. If `realTimeVerification: false` this callback is never hit. This call back is purely for styling purposes.
|
|
353
|
+
|
|
354
|
+
Example Usage:
|
|
355
|
+
```javascript
|
|
356
|
+
StreamConnect({
|
|
357
|
+
el: '#react-hook',
|
|
358
|
+
...
|
|
359
|
+
doneRealTime: () => {
|
|
360
|
+
// Do some styling
|
|
361
|
+
},
|
|
362
|
+
});
|
|
363
|
+
```
|
|
364
|
+
|
|
365
|
+
### `doneEasyEnroll`
|
|
366
|
+
`doneEasyEnroll` This is the final callback of the SDK widget and it occurs when the system. There is a bunch of data dumped at the end which can be useful for an implementor when they are working the *TPAStream Webhooks*
|
|
367
|
+
|
|
368
|
+
There are several properties passed back through this callback. Only a few may be applicable to an implementor.
|
|
369
|
+
* `employer`
|
|
370
|
+
* `payer`
|
|
371
|
+
* `tenant`
|
|
372
|
+
* `user`
|
|
373
|
+
* `pending` -- The literal value the SDK is looking at to determine whether or not to show the pending page. If this is true the policyHolder is still pending.
|
|
374
|
+
* `endingMessage` -- The specific ending message the SDK got from the backend to say to this user depending on their credentials status.
|
|
375
|
+
* `policyHolder` -- The now saved policy_holder
|
|
376
|
+
* `policy_holder_id`
|
|
377
|
+
* `payer_id`
|
|
378
|
+
* `login_correction_message` -- This will be null unless the `login_problem !== 'valid' || login_problem !== null`
|
|
379
|
+
* `login_needs_correction` -- `true` or `false`. If `true` these credentials were found to be invalid via the realtime-validation engine.
|
|
380
|
+
* `login_problem` -- This can be equal to any of the following below. Each has a different meaning around the credentials
|
|
381
|
+
* `'valid'` -- The credentials are completely fine. Claims should start being collected shortly
|
|
382
|
+
* `'invalid'` -- The crawl engine found that these credentials are not valid for the carrier. The user will be prompted to re-enter valid credentials into the SDK.
|
|
383
|
+
* `'locked'` -- The crawl engine has identified that the carrier has locked this account for any number of reasons. This will require further action on the user's side in order to resolve.
|
|
384
|
+
* `'broken'` -- The crawl engine has identified some issue with this credential's account. This usually requires the carriers to fix some issue on their site for progress to occure
|
|
385
|
+
* `'needs_two_factor'` -- Support for two factor authentication for said payer is coming soon.
|
|
386
|
+
* `'incomplete'` -- The crawl engine has identified that the registration for the user's credentials on the carrier site is incomplete. This will require action on the user's side to resolve.
|
|
387
|
+
* `'inactive'` -- The user's account has been identified as inactive and thus will not be accessible to the crawler.
|
|
388
|
+
* `'sec_question'` -- The user's security questions appear to be incorrect. The user will be prompted to re-enter valid credentials
|
|
389
|
+
* `'wrong_secondary'` -- The user's account is configured to be using the wrong secondary method of authentication. This will prompt the user to update their account to use security questions.
|
|
390
|
+
* `null` -- The crawl engine is still trying to confirm the status of these credentials. This may take up to 24 hours depending on the carrier's site uptime.
|
|
391
|
+
|
|
392
|
+
If `renderEndWidget: true` then you will be given access to the following params as well.
|
|
393
|
+
* `returnFlowFunction` This will restart the SDK engine or return the user to the payer form depending on if the credentials were valid or not.
|
|
394
|
+
* An example call of this function looks like `returnFlowFunction()`
|
|
395
|
+
|
|
396
|
+
Example Usage:
|
|
397
|
+
```javascript
|
|
398
|
+
StreamConnect({
|
|
399
|
+
el: '#react-hook',
|
|
400
|
+
...
|
|
401
|
+
doneEasyEnroll: ({ employer, payer, tenant, policyHolder, user, returnFlowFunction }) => {
|
|
402
|
+
// Do something with the data.
|
|
403
|
+
},
|
|
404
|
+
});
|
|
405
|
+
```
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Connect Access Token
|
|
2
|
+
|
|
3
|
+
This is an advanced security funcitonality intended for implementors who would like an extra layer of security on the stream connect sdk. This set-up is required if an implementor intends to use the Fix-Credentials capabilities of the stream connect sdk.
|
|
4
|
+
|
|
5
|
+
## Your Public Key vs Your Secret Key
|
|
6
|
+
If you have opted into using the connect access token for the stream connect sdk, then you will have been provided 2 keys in association to your sdk instance. One key will be made clear to be your `sdkToken` this is a public key not meant to be hidden. This key will go into the `sdkToken` key on your StreamConnect initialization object.
|
|
7
|
+
|
|
8
|
+
```
|
|
9
|
+
StreamConnect({
|
|
10
|
+
sdkToken: "Your-Sdk-Token"
|
|
11
|
+
})
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
The other key you receive is a secret key not meant for public consumption.
|
|
15
|
+
|
|
16
|
+
**WARNING**
|
|
17
|
+
-----------
|
|
18
|
+
Never put your SDK secret key in a place were a user could potential see it. That means never put it in the StreamConnect initialization object.
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## How to use your Secret Key
|
|
22
|
+
Your secret key is meant to be used to generate temporary tokens which you will then pass to your StreamConnect initialization object.
|
|
23
|
+
|
|
24
|
+
The pattern is as followed.
|
|
25
|
+

|
|
26
|
+
|
|
27
|
+
1. Confirm that your secret key is stored on your application.
|
|
28
|
+
2. Make a POST request to https://app.tpastream.com/api/create-connect-token
|
|
29
|
+
* The Body should have `{"connect_access_key": "", "connect_secret_key": ""}`
|
|
30
|
+
3. You will recieve back a response with json data `"data": "some-super-long-jwt"`
|
|
31
|
+
4. Take the value from that response's data key and pump it up to your StreamConnect instance through `connectAccessToken`
|
|
32
|
+
|
|
33
|
+
Your init object should look like
|
|
34
|
+
```
|
|
35
|
+
StreamConnect({
|
|
36
|
+
"sdkToken": "<Your-Public-Access-Key>",
|
|
37
|
+
"connectAccessToken": "<some-super-long-jwt>"
|
|
38
|
+
})
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
This JWT expires after 1 hour.
|
|
42
|
+
|
|
43
|
+
## Mid-session token refresh (0.8+)
|
|
44
|
+
|
|
45
|
+
After a Patient Access API redirect completes, `app.tpastream.com`
|
|
46
|
+
appends a fresh `?accessToken=...` query parameter to the return
|
|
47
|
+
URL. The 0.8 SDK reads it automatically on init and uses it for the
|
|
48
|
+
rest of the session, overriding any stale `connectAccessToken` baked
|
|
49
|
+
into the page. The token is stripped from the URL via
|
|
50
|
+
`history.replaceState` so it doesn't end up in the browser history
|
|
51
|
+
or address bar.
|
|
52
|
+
|
|
53
|
+
Note: `replaceState` runs after the SDK script loads, so any
|
|
54
|
+
resources or third-party scripts loaded by the host page *before*
|
|
55
|
+
the SDK runs (analytics beacons, ad pixels, anything in the `<head>`
|
|
56
|
+
that fires its own requests) can still see the original
|
|
57
|
+
token-bearing URL in the Referer header. If your host page loads
|
|
58
|
+
anything sensitive before the SDK, either move it after the SDK
|
|
59
|
+
script tag or strip the `accessToken` query param server-side
|
|
60
|
+
before serving the post-redirect page.
|
|
61
|
+
|
|
62
|
+
See [Client Usage > Redirect query
|
|
63
|
+
parameters](./client-usage.md#redirect-query-parameters-patient-access-api)
|
|
64
|
+
for the full mechanics.
|
|
65
|
+
|
|
66
|
+
## See also
|
|
67
|
+
|
|
68
|
+
* [Fix Credentials](./fix-credentials.md): the primary consumer of
|
|
69
|
+
`connectAccessToken`
|
|
70
|
+
* [Patient Access API (Interop)](./interop.md): the redirect flow
|
|
71
|
+
that drives the mid-session refresh above
|
package/docs/error.md
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Error Documentation
|
|
2
|
+
|
|
3
|
+
Errors are grouped by where they come from in the SDK lifecycle. Each
|
|
4
|
+
entry covers the message, the HTTP / SDK state it shows up in, and
|
|
5
|
+
what to do about it.
|
|
6
|
+
|
|
7
|
+
## Init-time configuration errors
|
|
8
|
+
|
|
9
|
+
### `init failed: el must be a CSS selector string`
|
|
10
|
+
|
|
11
|
+
The first argument to `StreamConnect({ el })` was undefined, missing,
|
|
12
|
+
or not a string. Pass a CSS selector that resolves to a single
|
|
13
|
+
element on the page (e.g. `'#react-hook'`).
|
|
14
|
+
|
|
15
|
+
### `init failed: element <selector> not found in DOM`
|
|
16
|
+
|
|
17
|
+
The selector passed in `el` doesn't match anything when the SDK tries
|
|
18
|
+
to mount. Either the element doesn't exist yet (load the SDK after
|
|
19
|
+
your container element renders), or the selector is wrong. The SDK
|
|
20
|
+
calls `handleInitErrors` with the error so your host page can log /
|
|
21
|
+
recover.
|
|
22
|
+
|
|
23
|
+
### `You are missing required parameters in user. We require [firstName, lastName, email].`
|
|
24
|
+
|
|
25
|
+
The `user` object passed to `StreamConnect({ user: ... })` is
|
|
26
|
+
missing one of the three required fields. Backend returns 422.
|
|
27
|
+
|
|
28
|
+
### `User is not a valid user for the easyenrollment sdk`
|
|
29
|
+
|
|
30
|
+
The email passed in `user.email` matches a TPAStream admin account.
|
|
31
|
+
Use a different email; admin accounts can't double as enrollment
|
|
32
|
+
users. For local testing the `+` alias trick works
|
|
33
|
+
(`youremail+sdktest@gmail.com`).
|
|
34
|
+
|
|
35
|
+
### `There was no APIKey Provided`
|
|
36
|
+
|
|
37
|
+
`sdkToken` / `apiToken` is missing from the init object. Both are the
|
|
38
|
+
same option (apiToken wins if both are set). Get the value from
|
|
39
|
+
TPAStream support.
|
|
40
|
+
|
|
41
|
+
### `This Token is not active`
|
|
42
|
+
|
|
43
|
+
`sdkToken` is valid but hasn't been activated yet (or has been
|
|
44
|
+
deactivated). Contact TPAStream support.
|
|
45
|
+
|
|
46
|
+
### `This is not a valid version for this endpoint`
|
|
47
|
+
|
|
48
|
+
The SDK version being loaded predates a server-side change. Pinned
|
|
49
|
+
CDN versions remain available indefinitely, so this is rare; usually
|
|
50
|
+
it indicates a bundle that's older than any pinned release.
|
|
51
|
+
|
|
52
|
+
## Connect Access Token errors
|
|
53
|
+
|
|
54
|
+
### `You must have a connect access token enabled and set to use fix-credentials functionality.`
|
|
55
|
+
|
|
56
|
+
The `fixCredentials: true` init option requires a
|
|
57
|
+
`connectAccessToken`. Mint one server-side via
|
|
58
|
+
`POST /api/create-connect-token` (see
|
|
59
|
+
[Connect Access Token](./connect-access-token.md)) and pass it to
|
|
60
|
+
`StreamConnect`.
|
|
61
|
+
|
|
62
|
+
### `You must include a redirect URL in your sdk-token config to enable interoperability`
|
|
63
|
+
|
|
64
|
+
The Patient Access API flow (`enablePatientAccessAPI: true`) needs a
|
|
65
|
+
redirect URL registered with your sdkToken so the carrier knows where
|
|
66
|
+
to send the user after they authenticate. Contact TPAStream support
|
|
67
|
+
to configure this on the sdkToken.
|
|
68
|
+
|
|
69
|
+
## SSE / real-time validation errors (0.8+)
|
|
70
|
+
|
|
71
|
+
These come from the `/v3/sdk/progress/<task_id>/stream` endpoint that
|
|
72
|
+
the 0.8 SDK uses for live validation updates. They are NOT shown to
|
|
73
|
+
the user directly. The SDK transitions the validation into a
|
|
74
|
+
recoverable state (`failure` or `pending_async`) and surfaces a copy
|
|
75
|
+
in the hero element.
|
|
76
|
+
|
|
77
|
+
| HTTP status | Detail message | Meaning | Recovery |
|
|
78
|
+
|---|---|---|---|
|
|
79
|
+
| 401 | `Missing token` | The SSE URL was hit without a `?token=` query param | Shouldn't happen via the SDK; if you proxy the URL yourself, forward the token |
|
|
80
|
+
| 401 | `Task token has expired` | JWT `exp` passed (10-minute TTL after dispatch) | Re-submit the credentials to get a fresh token |
|
|
81
|
+
| 401 | `Task not available` | The Redis `progress_task_owner` pointer expired (typically same TTL as token) | Same: re-submit |
|
|
82
|
+
| 403 | `Not your task` | The JWT and Redis pointer disagree on `user_id` | Token reuse across sessions; re-init the SDK |
|
|
83
|
+
| 422 | `Task token is invalid` | Bad signature, unknown algorithm, or malformed claims | Token was tampered with or minted by a different deploy |
|
|
84
|
+
| 422 | `Task token does not match requested task` | The token's `task_id` claim doesn't match the URL path | Token reuse against the wrong task; re-submit |
|
|
85
|
+
| 422 | `Task token audience mismatch` | `aud` claim isn't `sdk:sse:progress` | Token from a different service was forwarded |
|
|
86
|
+
| 422 | `Task token missing required claim: <name>` | Mint upstream produced a token missing one of `exp` / `iat` / `task_id` / `sub` | Backend bug; report it |
|
|
87
|
+
|
|
88
|
+
On any error the SDK transitions the active validation to
|
|
89
|
+
`pending_async` (visible in the hero / corner panel) and leaves the
|
|
90
|
+
wizard usable. The user can keep adding carriers; when they return
|
|
91
|
+
later the validation's true terminal state is reflected.
|
|
92
|
+
|
|
93
|
+
## Cred-submit + validation errors
|
|
94
|
+
|
|
95
|
+
### `Could not reach the carrier. Please try again.`
|
|
96
|
+
|
|
97
|
+
Generic transient error from the cred-submit POST. Often a brief
|
|
98
|
+
backend hiccup; user retry usually clears it. Surfaced in the inline
|
|
99
|
+
form error and via `handleFormErrors` so your host page can log.
|
|
100
|
+
|
|
101
|
+
### `Connection failed` / `<carrier-specific message>`
|
|
102
|
+
|
|
103
|
+
The carrier's Patient Access API redirect returned a `FAILURE` state.
|
|
104
|
+
The carrier-specific message is forwarded verbatim from the carrier's
|
|
105
|
+
response. Common causes: user denied consent on the carrier page,
|
|
106
|
+
carrier-side auth failure, expired authorization grant.
|
|
107
|
+
|
|
108
|
+
### `This carrier's connection is misconfigured. Please contact your administrator.`
|
|
109
|
+
|
|
110
|
+
The Patient Access API redirect couldn't begin because the carrier
|
|
111
|
+
has no `interoperability_authorization_url` configured on the backend
|
|
112
|
+
payer row. Not a customer-fixable problem; needs backend payer
|
|
113
|
+
config.
|
|
114
|
+
|
|
115
|
+
### `Connection check failed. Please try again.`
|
|
116
|
+
|
|
117
|
+
The `getInteropState` polling request rejected (network / auth /
|
|
118
|
+
server error). The SDK clears the interval, surfaces this message,
|
|
119
|
+
and lets the user retry the carrier auth from the start.
|
|
120
|
+
|
|
121
|
+
### `Unknown state of interop flow`
|
|
122
|
+
|
|
123
|
+
The interop polling endpoint returned a status the SDK doesn't know
|
|
124
|
+
how to handle. Indicates a backend-frontend version skew; report it.
|
|
125
|
+
|
|
126
|
+
## Form-validation errors
|
|
127
|
+
|
|
128
|
+
### `Required`
|
|
129
|
+
|
|
130
|
+
A required field on the credentials form is empty. Comes from the
|
|
131
|
+
Zod schema generated from the carrier's `onboard_form.schema`.
|
|
132
|
+
|
|
133
|
+
### `You must agree to the terms and services.`
|
|
134
|
+
|
|
135
|
+
The "I have read and agree to the Terms of Use" checkbox wasn't
|
|
136
|
+
ticked.
|
|
137
|
+
|
|
138
|
+
### `You must acknowledge that claims will be sent to the tenant.`
|
|
139
|
+
|
|
140
|
+
The tenant acknowledgement checkbox wasn't ticked.
|
|
141
|
+
|
|
142
|
+
## See also
|
|
143
|
+
|
|
144
|
+
* [Client Usage](./client-usage.md) for the full init option contract
|
|
145
|
+
and the `handleFormErrors` / `handleInitErrors` callback signatures
|
|
146
|
+
* [SDK Flow](./sdk-flow.md) for how the wizard recovers from each
|
|
147
|
+
error class
|
|
148
|
+
* [Two-Factor Authentication](./two-factor.md) for the MFA-specific
|
|
149
|
+
error states
|