@transmitsecurity/platform-web-sdk 1.16.2 → 1.17.1
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 +23 -2
- package/README.md +69 -48
- package/dist/web-sdk-drs+idv+webauthn+ido.js +2 -2
- package/dist/web-sdk.d.ts +4 -16
- package/package.json +12 -13
- package/build/drs-entry.d.ts +0 -20
- package/build/drs-entry.js +0 -19
- package/build/drs-only.d.ts +0 -22
- package/build/drs-only.js +0 -25
- package/build/drs.d.ts +0 -28
- package/build/drs.js +0 -45
- package/build/ido/idoImpl.d.ts +0 -2
- package/build/ido/idoImpl.js +0 -4
- package/build/ido/index.d.ts +0 -7
- package/build/ido/index.js +0 -9
- package/build/ido-entry.d.ts +0 -17
- package/build/ido-entry.js +0 -19
- package/build/ido.d.ts +0 -18
- package/build/ido.js +0 -27
- package/build/idv-entry.d.ts +0 -17
- package/build/idv-entry.js +0 -19
- package/build/idv.d.ts +0 -18
- package/build/idv.js +0 -27
- package/build/initialize-only.d.ts +0 -7
- package/build/initialize-only.js +0 -40
- package/build/initialize.d.ts +0 -1
- package/build/initialize.js +0 -2
- package/build/mainExport.d.ts +0 -16
- package/build/mainExport.js +0 -43
- package/build/sdk-factory.d.ts +0 -109
- package/build/sdk-factory.js +0 -108
- package/build/shared-state.d.ts +0 -4
- package/build/shared-state.js +0 -32
- package/build/webauthn-entry.d.ts +0 -19
- package/build/webauthn-entry.js +0 -19
- package/build/webauthn.d.ts +0 -24
- package/build/webauthn.js +0 -44
- package/bundler-config.json +0 -14
- package/dist/docs/.nojekyll +0 -1
- package/dist/docs/README.md +0 -72
- package/dist/docs/enums/ErrorCode.md +0 -113
- package/dist/docs/interfaces/ActionEventOptions.md +0 -44
- package/dist/docs/interfaces/ActionResponse.md +0 -9
- package/dist/docs/interfaces/AuthenticationAutofillActivateHandlers.md +0 -61
- package/dist/docs/interfaces/AutofillHandlers.md +0 -50
- package/dist/docs/interfaces/CrossDeviceController.md +0 -27
- package/dist/docs/interfaces/SdkError.md +0 -28
- package/dist/docs/interfaces/WebauthnApis.md +0 -73
- package/dist/docs/interfaces/WebauthnAuthenticationFlows.md +0 -52
- package/dist/docs/interfaces/WebauthnCrossDeviceFlows.md +0 -107
- package/dist/docs/interfaces/WebauthnCrossDeviceRegistrationOptions.md +0 -23
- package/dist/docs/interfaces/WebauthnRegistrationOptions.md +0 -55
- package/dist/docs/interfaces/initConfigParams.md +0 -7
- package/dist/docs/modules/drs.md +0 -92
- package/dist/docs/modules/idv.md +0 -106
- package/dist/docs/modules/webauthn.md +0 -197
- package/dist/docs/modules.md +0 -146
- package/dist/drs.cjs +0 -1
- package/dist/drs.d.ts +0 -248
- package/dist/drs.js +0 -1
- package/dist/ido.cjs +0 -3
- package/dist/ido.d.ts +0 -57
- package/dist/ido.js +0 -3
- package/dist/idv.cjs +0 -1
- package/dist/idv.d.ts +0 -69
- package/dist/idv.js +0 -1
- package/dist/index.cjs +0 -3
- package/dist/index.esm.js +0 -3
- package/dist/index.umd.js +0 -3
- package/dist/ts-platform-websdk.js +0 -3
- package/dist/webauthn.cjs +0 -1
- package/dist/webauthn.d.ts +0 -463
- package/dist/webauthn.js +0 -1
- package/scripts/make-semver-aliases.sh +0 -11
- package/scripts/upload-dist.sh +0 -9
- package/src/mainExport.ts +0 -75
- package/src/tsconfig.json +0 -14
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
# Interface: AutofillHandlers
|
|
2
|
-
|
|
3
|
-
## Methods
|
|
4
|
-
|
|
5
|
-
### activate
|
|
6
|
-
|
|
7
|
-
▸ **activate**(`handlers`, `username?`): `void`
|
|
8
|
-
|
|
9
|
-
Invokes a WebAuthn authentication, including prompting the user to select from a list of registered credentials using autofill, and then prompting the user for biometrics. In order to prompt this credentials list, the autocomplete="username webauthn" attribute **must** be defined on the username input box of the authentication page.<br/>
|
|
10
|
-
If authentication is completed successfully, the `onSuccess` callback will be triggered with the credential result, which is an object encoded as a base64 string. This encoded result should then be passed to the [backend authentication endpoint](/openapi/user/backend-webauthn/#operation/authenticateWebauthnCredential) to retrieve user tokens.<br/>
|
|
11
|
-
If it fails, the `onError` callback will be triggered with an SdkError.
|
|
12
|
-
|
|
13
|
-
**`Throws`**
|
|
14
|
-
|
|
15
|
-
[NotInitialized](../enums/ErrorCode.md#notinitialized)
|
|
16
|
-
|
|
17
|
-
**`Throws`**
|
|
18
|
-
|
|
19
|
-
[AuthenticationFailed](../enums/ErrorCode.md#authenticationfailed)
|
|
20
|
-
|
|
21
|
-
**`Throws`**
|
|
22
|
-
|
|
23
|
-
[AuthenticationCanceled](../enums/ErrorCode.md#authenticationcanceled)
|
|
24
|
-
|
|
25
|
-
**`Throws`**
|
|
26
|
-
|
|
27
|
-
[AutofillAuthenticationAborted](../enums/ErrorCode.md#autofillauthenticationaborted)
|
|
28
|
-
|
|
29
|
-
#### Parameters
|
|
30
|
-
|
|
31
|
-
| Name | Type | Description |
|
|
32
|
-
| :------ | :------ | :------ |
|
|
33
|
-
| `handlers` | [`AuthenticationAutofillActivateHandlers`](AuthenticationAutofillActivateHandlers.md) | Handlers that will be invoked once the authentication is completed (success or failure) |
|
|
34
|
-
| `username?` | `string` | Name of user account, as used in the WebAuthn registration. If not provided, the authentication will start without the context of a user and it will be inferred by the chosen passkey |
|
|
35
|
-
|
|
36
|
-
#### Returns
|
|
37
|
-
|
|
38
|
-
`void`
|
|
39
|
-
|
|
40
|
-
___
|
|
41
|
-
|
|
42
|
-
### abort
|
|
43
|
-
|
|
44
|
-
▸ **abort**(): `void`
|
|
45
|
-
|
|
46
|
-
Aborts a WebAuthn authentication. This method should be called after the passkey autofill is dismissed in order to be able to query existing passkeys once again. This will end the browser's `navigator.credentials.get()` operation.
|
|
47
|
-
|
|
48
|
-
#### Returns
|
|
49
|
-
|
|
50
|
-
`void`
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Interface: CrossDeviceController
|
|
2
|
-
|
|
3
|
-
WebAuthn cross device handlers interfaces
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### crossDeviceTicketId
|
|
8
|
-
|
|
9
|
-
• **crossDeviceTicketId**: `string`
|
|
10
|
-
|
|
11
|
-
Ticket ID for this cross-device flow.
|
|
12
|
-
|
|
13
|
-
___
|
|
14
|
-
|
|
15
|
-
### stop
|
|
16
|
-
|
|
17
|
-
• **stop**: () => `void`
|
|
18
|
-
|
|
19
|
-
#### Type declaration
|
|
20
|
-
|
|
21
|
-
▸ (): `void`
|
|
22
|
-
|
|
23
|
-
Stops listening for events from devices in cross-device flows
|
|
24
|
-
|
|
25
|
-
##### Returns
|
|
26
|
-
|
|
27
|
-
`void`
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Interface: SdkError
|
|
2
|
-
|
|
3
|
-
Common interface for `Promise` rejections.
|
|
4
|
-
Developers should handle according to the `errorCode`
|
|
5
|
-
|
|
6
|
-
## Properties
|
|
7
|
-
|
|
8
|
-
### errorCode
|
|
9
|
-
|
|
10
|
-
• `Readonly` **errorCode**: [`ErrorCode`](../enums/ErrorCode.md)
|
|
11
|
-
|
|
12
|
-
Error code from [ErrorCode](../enums/ErrorCode.md)
|
|
13
|
-
|
|
14
|
-
___
|
|
15
|
-
|
|
16
|
-
### message
|
|
17
|
-
|
|
18
|
-
• `Readonly` **message**: `string`
|
|
19
|
-
|
|
20
|
-
Error message
|
|
21
|
-
|
|
22
|
-
___
|
|
23
|
-
|
|
24
|
-
### data
|
|
25
|
-
|
|
26
|
-
• `Optional` `Readonly` **data**: `any`
|
|
27
|
-
|
|
28
|
-
Additional data
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# Interface: WebauthnApis
|
|
2
|
-
|
|
3
|
-
Alternate paths used by the SDK to route API calls to your proxy server.
|
|
4
|
-
|
|
5
|
-
## Properties
|
|
6
|
-
|
|
7
|
-
### startAuthentication
|
|
8
|
-
|
|
9
|
-
• **startAuthentication**: `string`
|
|
10
|
-
|
|
11
|
-
**`Default Value`**
|
|
12
|
-
|
|
13
|
-
`/v1/auth/webauthn/authenticate/start`
|
|
14
|
-
|
|
15
|
-
___
|
|
16
|
-
|
|
17
|
-
### startRegistration
|
|
18
|
-
|
|
19
|
-
• **startRegistration**: `string`
|
|
20
|
-
|
|
21
|
-
**`Default Value`**
|
|
22
|
-
|
|
23
|
-
`/v1/auth/webauthn/register/start`
|
|
24
|
-
|
|
25
|
-
___
|
|
26
|
-
|
|
27
|
-
### startCrossDeviceRegistration
|
|
28
|
-
|
|
29
|
-
• **startCrossDeviceRegistration**: `string`
|
|
30
|
-
|
|
31
|
-
**`Default Value`**
|
|
32
|
-
|
|
33
|
-
`/v1/auth/webauthn/cross-device/register/start`
|
|
34
|
-
|
|
35
|
-
___
|
|
36
|
-
|
|
37
|
-
### initCrossDeviceAuthentication
|
|
38
|
-
|
|
39
|
-
• **initCrossDeviceAuthentication**: `string`
|
|
40
|
-
|
|
41
|
-
**`Default Value`**
|
|
42
|
-
|
|
43
|
-
`/v1/auth/webauthn/cross-device/authenticate/init`
|
|
44
|
-
|
|
45
|
-
___
|
|
46
|
-
|
|
47
|
-
### startCrossDeviceAuthentication
|
|
48
|
-
|
|
49
|
-
• **startCrossDeviceAuthentication**: `string`
|
|
50
|
-
|
|
51
|
-
**`Default Value`**
|
|
52
|
-
|
|
53
|
-
`/v1/auth/webauthn/cross-device/authenticate/start`
|
|
54
|
-
|
|
55
|
-
___
|
|
56
|
-
|
|
57
|
-
### getCrossDeviceTicketStatus
|
|
58
|
-
|
|
59
|
-
• **getCrossDeviceTicketStatus**: `string`
|
|
60
|
-
|
|
61
|
-
**`Default Value`**
|
|
62
|
-
|
|
63
|
-
`/v1/auth/webauthn/cross-device/status`
|
|
64
|
-
|
|
65
|
-
___
|
|
66
|
-
|
|
67
|
-
### attachDeviceToCrossDeviceSession
|
|
68
|
-
|
|
69
|
-
• **attachDeviceToCrossDeviceSession**: `string`
|
|
70
|
-
|
|
71
|
-
**`Default Value`**
|
|
72
|
-
|
|
73
|
-
`/v1/auth/webauthn/cross-device/attach-device`
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# Interface: WebauthnAuthenticationFlows
|
|
2
|
-
|
|
3
|
-
## Methods
|
|
4
|
-
|
|
5
|
-
### modal
|
|
6
|
-
|
|
7
|
-
▸ **modal**(`username?`, `options?`): `Promise`<`string`\>
|
|
8
|
-
|
|
9
|
-
Invokes a WebAuthn authentication, including prompting the user to select from a list of registered credentials, and then prompting the user for biometrics. The credentials list is displayed using the native browser modal.<br/>
|
|
10
|
-
If username isn't provided, it will promote a modal with a list of all discoverable credentials on the device. If username is provided, this call must be invoked for a registered username. If the target username is not registered or in case of any other failure, an SdkError will be thrown.<br/>
|
|
11
|
-
If authentication is completed successfully, this call will return a promise that resolves to the credential result, which is an object encoded as a base64 string. This encoded result should then be passed to the [backend authentication endpoint](/openapi/user/backend-webauthn/#operation/authenticateWebauthnCredential) to retrieve user tokens.<br/>
|
|
12
|
-
|
|
13
|
-
**`Throws`**
|
|
14
|
-
|
|
15
|
-
[NotInitialized](../enums/ErrorCode.md#notinitialized)
|
|
16
|
-
|
|
17
|
-
**`Throws`**
|
|
18
|
-
|
|
19
|
-
[AuthenticationFailed](../enums/ErrorCode.md#authenticationfailed)
|
|
20
|
-
|
|
21
|
-
**`Throws`**
|
|
22
|
-
|
|
23
|
-
[AuthenticationCanceled](../enums/ErrorCode.md#authenticationcanceled)
|
|
24
|
-
|
|
25
|
-
**`Throws`**
|
|
26
|
-
|
|
27
|
-
[InvalidApprovalData](../enums/ErrorCode.md#invalidapprovaldata)
|
|
28
|
-
|
|
29
|
-
**`Throws`**
|
|
30
|
-
|
|
31
|
-
[AuthenticationProcessAlreadyActive](../enums/ErrorCode.md#authenticationprocessalreadyactive)
|
|
32
|
-
|
|
33
|
-
#### Parameters
|
|
34
|
-
|
|
35
|
-
| Name | Type | Description |
|
|
36
|
-
| :------ | :------ | :------ |
|
|
37
|
-
| `username?` | `string` | Name of user account, as used in the WebAuthn registration. If not provided, the authentication will start without the context of a user and it will be inferred by the chosen passkey |
|
|
38
|
-
| `options?` | `WebauthnAuthenticationOptions` | WebauthnAuthenticationOptions Options for the authentication process |
|
|
39
|
-
|
|
40
|
-
#### Returns
|
|
41
|
-
|
|
42
|
-
`Promise`<`string`\>
|
|
43
|
-
|
|
44
|
-
Base64-encoded object, which contains the credential result. This encoded result will be used to fetch user tokens via the [backend authentication endpoint](/openapi/user/backend-webauthn/#operation/authenticateWebauthnCredential).
|
|
45
|
-
|
|
46
|
-
## Properties
|
|
47
|
-
|
|
48
|
-
### autofill
|
|
49
|
-
|
|
50
|
-
• **autofill**: [`AutofillHandlers`](AutofillHandlers.md)
|
|
51
|
-
|
|
52
|
-
Property used to implement credential selection via autofill UI.
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
# Interface: WebauthnCrossDeviceFlows
|
|
2
|
-
|
|
3
|
-
## Properties
|
|
4
|
-
|
|
5
|
-
### init
|
|
6
|
-
|
|
7
|
-
• **init**: `Object`
|
|
8
|
-
|
|
9
|
-
Initializes a cross device flow, such as when users request to login to a desktop using their mobile device. Once invoked, the SDK will start listening for events occurring on the other device,
|
|
10
|
-
and calls your handlers when a state change is detected.
|
|
11
|
-
These methods return a promise that resolves to a [CrossDeviceController](CrossDeviceController.md) object, which allows you to stop listening to events and includes the cross-device ticket ID which is used when attaching another device to the flow.
|
|
12
|
-
|
|
13
|
-
#### Type declaration
|
|
14
|
-
|
|
15
|
-
| Name | Type |
|
|
16
|
-
| :------ | :------ |
|
|
17
|
-
| `registration` | (`params`: { `crossDeviceTicketId`: `string` ; `handlers`: `CrossDeviceRegistrationHandlers` }) => `Promise`<[`CrossDeviceController`](CrossDeviceController.md)\> |
|
|
18
|
-
| `authentication` | (`params`: { `username?`: `string` ; `handlers`: `CrossDeviceAuthenticationHandlers` }) => `Promise`<[`CrossDeviceController`](CrossDeviceController.md)\> |
|
|
19
|
-
| `approval` | (`params`: { `username`: `string` ; `approvalData`: `Record`<`string`, `string`\> ; `handlers`: `CrossDeviceAuthenticationHandlers` }) => `Promise`<[`CrossDeviceController`](CrossDeviceController.md)\> |
|
|
20
|
-
|
|
21
|
-
___
|
|
22
|
-
|
|
23
|
-
### authenticate
|
|
24
|
-
|
|
25
|
-
• **authenticate**: `Object`
|
|
26
|
-
|
|
27
|
-
#### Type declaration
|
|
28
|
-
|
|
29
|
-
| Name | Type |
|
|
30
|
-
| :------ | :------ |
|
|
31
|
-
| `modal` | (`crossDeviceTicketId`: `string`) => `Promise`<`string`\> |
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### approve
|
|
36
|
-
|
|
37
|
-
• **approve**: `Object`
|
|
38
|
-
|
|
39
|
-
#### Type declaration
|
|
40
|
-
|
|
41
|
-
| Name | Type |
|
|
42
|
-
| :------ | :------ |
|
|
43
|
-
| `modal` | (`crossDeviceTicketId`: `string`) => `Promise`<`string`\> |
|
|
44
|
-
|
|
45
|
-
___
|
|
46
|
-
|
|
47
|
-
### register
|
|
48
|
-
|
|
49
|
-
• **register**: (`crossDeviceTicketId`: `string`, `options?`: [`WebauthnCrossDeviceRegistrationOptions`](WebauthnCrossDeviceRegistrationOptions.md)) => `Promise`<`string`\>
|
|
50
|
-
|
|
51
|
-
#### Type declaration
|
|
52
|
-
|
|
53
|
-
▸ (`crossDeviceTicketId`, `options?`): `Promise`<`string`\>
|
|
54
|
-
|
|
55
|
-
Invokes a WebAuthn credential registration for the user used in the cross device session init, including prompting the user for biometrics.
|
|
56
|
-
If registration is completed successfully, this call will return a promise that resolves to the credential result, which is an object encoded as a base64 string. This encoded result should then be passed to the relevant backend registration endpoint to complete the registration for either a [logged-in user](/openapi/user/backend-webauthn/#operation/webauthn-registration) or [logged-out user](/openapi/user/backend-webauthn/#operation/webauthn-registration-external).
|
|
57
|
-
If registration fails, an SdkError will be thrown.
|
|
58
|
-
If the backend registration call was successful, CrossDeviceRegistrationHandlers.onCredentialRegister will be called.
|
|
59
|
-
|
|
60
|
-
**`Throws`**
|
|
61
|
-
|
|
62
|
-
[NotInitialized](../enums/ErrorCode.md#notinitialized)
|
|
63
|
-
|
|
64
|
-
**`Throws`**
|
|
65
|
-
|
|
66
|
-
[RegistrationFailed](../enums/ErrorCode.md#registrationfailed)
|
|
67
|
-
|
|
68
|
-
**`Throws`**
|
|
69
|
-
|
|
70
|
-
[RegistrationCanceled](../enums/ErrorCode.md#registrationcanceled)
|
|
71
|
-
|
|
72
|
-
##### Parameters
|
|
73
|
-
|
|
74
|
-
| Name | Type | Description |
|
|
75
|
-
| :------ | :------ | :------ |
|
|
76
|
-
| `crossDeviceTicketId` | `string` | Ticket ID of the cross-device flow. retrieved from the [CrossDeviceController](CrossDeviceController.md) object. |
|
|
77
|
-
| `options?` | [`WebauthnCrossDeviceRegistrationOptions`](WebauthnCrossDeviceRegistrationOptions.md) | Additional configuration for registration flow |
|
|
78
|
-
|
|
79
|
-
##### Returns
|
|
80
|
-
|
|
81
|
-
`Promise`<`string`\>
|
|
82
|
-
|
|
83
|
-
___
|
|
84
|
-
|
|
85
|
-
### attachDevice
|
|
86
|
-
|
|
87
|
-
• **attachDevice**: (`crossDeviceTicketId`: `string`) => `Promise`<`AttachDeviceResult`\>
|
|
88
|
-
|
|
89
|
-
#### Type declaration
|
|
90
|
-
|
|
91
|
-
▸ (`crossDeviceTicketId`): `Promise`<`AttachDeviceResult`\>
|
|
92
|
-
|
|
93
|
-
Indicates when a session is accepted on another device in cross-device flows.
|
|
94
|
-
|
|
95
|
-
If successful,CrossDeviceRegistrationHandlers.onDeviceAttach will be called in registration flow and CrossDeviceAuthenticationHandlers.onDeviceAttach for authentication.
|
|
96
|
-
|
|
97
|
-
##### Parameters
|
|
98
|
-
|
|
99
|
-
| Name | Type | Description |
|
|
100
|
-
| :------ | :------ | :------ |
|
|
101
|
-
| `crossDeviceTicketId` | `string` | Ticket ID of the cross-device flow. retrieved from the [CrossDeviceController](CrossDeviceController.md) object. |
|
|
102
|
-
|
|
103
|
-
##### Returns
|
|
104
|
-
|
|
105
|
-
`Promise`<`AttachDeviceResult`\>
|
|
106
|
-
|
|
107
|
-
AttachDeviceResult AttachDeviceResult. Object containing the ticket status, creation timestamp, and approval data (if passed in the init.authentication() call)
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Interface: WebauthnCrossDeviceRegistrationOptions
|
|
2
|
-
|
|
3
|
-
## Hierarchy
|
|
4
|
-
|
|
5
|
-
- **`WebauthnCrossDeviceRegistrationOptions`**
|
|
6
|
-
|
|
7
|
-
↳ [`WebauthnRegistrationOptions`](WebauthnRegistrationOptions.md)
|
|
8
|
-
|
|
9
|
-
## Properties
|
|
10
|
-
|
|
11
|
-
### allowCrossPlatformAuthenticators
|
|
12
|
-
|
|
13
|
-
• `Optional` **allowCrossPlatformAuthenticators**: `boolean`
|
|
14
|
-
|
|
15
|
-
Allow registration using cross-platform authenticators, such as a USB security key or a different device. If enabled, cross-device authentication flows can be performed using the native browser experience (via QR code). default: True
|
|
16
|
-
|
|
17
|
-
___
|
|
18
|
-
|
|
19
|
-
### registerAsDiscoverable
|
|
20
|
-
|
|
21
|
-
• `Optional` **registerAsDiscoverable**: `boolean`
|
|
22
|
-
|
|
23
|
-
Must be set to true to register credentials as passkeys when supported (except for Apple devices, which always register credentials as passkeys). default: True
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
# Interface: WebauthnRegistrationOptions
|
|
2
|
-
|
|
3
|
-
## Hierarchy
|
|
4
|
-
|
|
5
|
-
- [`WebauthnCrossDeviceRegistrationOptions`](WebauthnCrossDeviceRegistrationOptions.md)
|
|
6
|
-
|
|
7
|
-
↳ **`WebauthnRegistrationOptions`**
|
|
8
|
-
|
|
9
|
-
## Properties
|
|
10
|
-
|
|
11
|
-
### allowCrossPlatformAuthenticators
|
|
12
|
-
|
|
13
|
-
• `Optional` **allowCrossPlatformAuthenticators**: `boolean`
|
|
14
|
-
|
|
15
|
-
Allow registration using cross-platform authenticators, such as a USB security key or a different device. If enabled, cross-device authentication flows can be performed using the native browser experience (via QR code). default: True
|
|
16
|
-
|
|
17
|
-
#### Inherited from
|
|
18
|
-
|
|
19
|
-
[WebauthnCrossDeviceRegistrationOptions](WebauthnCrossDeviceRegistrationOptions.md).[allowCrossPlatformAuthenticators](WebauthnCrossDeviceRegistrationOptions.md#allowcrossplatformauthenticators)
|
|
20
|
-
|
|
21
|
-
___
|
|
22
|
-
|
|
23
|
-
### registerAsDiscoverable
|
|
24
|
-
|
|
25
|
-
• `Optional` **registerAsDiscoverable**: `boolean`
|
|
26
|
-
|
|
27
|
-
Must be set to true to register credentials as passkeys when supported (except for Apple devices, which always register credentials as passkeys). default: True
|
|
28
|
-
|
|
29
|
-
#### Inherited from
|
|
30
|
-
|
|
31
|
-
[WebauthnCrossDeviceRegistrationOptions](WebauthnCrossDeviceRegistrationOptions.md).[registerAsDiscoverable](WebauthnCrossDeviceRegistrationOptions.md#registerasdiscoverable)
|
|
32
|
-
|
|
33
|
-
___
|
|
34
|
-
|
|
35
|
-
### displayName
|
|
36
|
-
|
|
37
|
-
• `Optional` **displayName**: `string`
|
|
38
|
-
|
|
39
|
-
Human-palatable name for the user account, only for display (max 64 characters). If not set, the username parameter will also act as the display name
|
|
40
|
-
|
|
41
|
-
___
|
|
42
|
-
|
|
43
|
-
### timeout
|
|
44
|
-
|
|
45
|
-
• `Optional` **timeout**: `number`
|
|
46
|
-
|
|
47
|
-
The timeout in seconds for the registration process. If the timeout is reached, the registration process will be aborted with error [RegistrationAbortedTimeout](../enums/ErrorCode.md#registrationabortedtimeout).
|
|
48
|
-
|
|
49
|
-
___
|
|
50
|
-
|
|
51
|
-
### limitSingleCredentialToDevice
|
|
52
|
-
|
|
53
|
-
• `Optional` **limitSingleCredentialToDevice**: `boolean`
|
|
54
|
-
|
|
55
|
-
Set to True in order to limit the creation of multiple credentials for the same account on a single authenticator. default: False
|
package/dist/docs/modules/drs.md
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
# Namespace: drs
|
|
2
|
-
|
|
3
|
-
## Type Aliases
|
|
4
|
-
|
|
5
|
-
### ActionEventOptions
|
|
6
|
-
|
|
7
|
-
Ƭ **ActionEventOptions**: [`ActionEventOptions`](../interfaces/ActionEventOptions.md)
|
|
8
|
-
|
|
9
|
-
___
|
|
10
|
-
|
|
11
|
-
### ActionResponse
|
|
12
|
-
|
|
13
|
-
Ƭ **ActionResponse**: [`ActionResponse`](../interfaces/ActionResponse.md)
|
|
14
|
-
|
|
15
|
-
## Variables
|
|
16
|
-
|
|
17
|
-
### \_\_internal
|
|
18
|
-
|
|
19
|
-
• `Const` **\_\_internal**: typeof `__internal`
|
|
20
|
-
|
|
21
|
-
## Functions
|
|
22
|
-
|
|
23
|
-
### clearUser
|
|
24
|
-
|
|
25
|
-
▸ **clearUser**(`options?`): `Promise`<`boolean`\>
|
|
26
|
-
|
|
27
|
-
Clears the user context for all subsequent events in the browser session
|
|
28
|
-
|
|
29
|
-
#### Parameters
|
|
30
|
-
|
|
31
|
-
| Name | Type | Description |
|
|
32
|
-
| :------ | :------ | :------ |
|
|
33
|
-
| `options?` | `Object` | Reserved for future use |
|
|
34
|
-
|
|
35
|
-
#### Returns
|
|
36
|
-
|
|
37
|
-
`Promise`<`boolean`\>
|
|
38
|
-
|
|
39
|
-
Indicates if the call succeeded
|
|
40
|
-
|
|
41
|
-
___
|
|
42
|
-
|
|
43
|
-
### getSessionToken
|
|
44
|
-
|
|
45
|
-
▸ **getSessionToken**(): `Promise`<`any`\>
|
|
46
|
-
|
|
47
|
-
#### Returns
|
|
48
|
-
|
|
49
|
-
`Promise`<`any`\>
|
|
50
|
-
|
|
51
|
-
___
|
|
52
|
-
|
|
53
|
-
### setAuthenticatedUser
|
|
54
|
-
|
|
55
|
-
▸ **setAuthenticatedUser**(`userId`, `options?`): `Promise`<`boolean`\>
|
|
56
|
-
|
|
57
|
-
Sets the user context for all subsequent events in the browser session (or until the user is explicitly cleared)
|
|
58
|
-
It should be set only after you've fully authenticated the user (including, for example, any 2FA that was required)
|
|
59
|
-
|
|
60
|
-
#### Parameters
|
|
61
|
-
|
|
62
|
-
| Name | Type | Description |
|
|
63
|
-
| :------ | :------ | :------ |
|
|
64
|
-
| `userId` | `string` | Opaque identifier of the user in your system |
|
|
65
|
-
| `options?` | `Object` | Reserved for future use |
|
|
66
|
-
|
|
67
|
-
#### Returns
|
|
68
|
-
|
|
69
|
-
`Promise`<`boolean`\>
|
|
70
|
-
|
|
71
|
-
Indicates if the call succeeded
|
|
72
|
-
|
|
73
|
-
___
|
|
74
|
-
|
|
75
|
-
### triggerActionEvent
|
|
76
|
-
|
|
77
|
-
▸ **triggerActionEvent**(`actionType`, `options?`): `Promise`<[`ActionResponse`](../interfaces/ActionResponse.md)\>
|
|
78
|
-
|
|
79
|
-
Reports a user action event to the SDK
|
|
80
|
-
|
|
81
|
-
#### Parameters
|
|
82
|
-
|
|
83
|
-
| Name | Type | Description |
|
|
84
|
-
| :------ | :------ | :------ |
|
|
85
|
-
| `actionType` | `string` | Type of user action event that was predefined in the Transmit Security server |
|
|
86
|
-
| `options?` | [`ActionEventOptions`](../interfaces/ActionEventOptions.md) | - |
|
|
87
|
-
|
|
88
|
-
#### Returns
|
|
89
|
-
|
|
90
|
-
`Promise`<[`ActionResponse`](../interfaces/ActionResponse.md)\>
|
|
91
|
-
|
|
92
|
-
Indicates if the call succeeded
|
package/dist/docs/modules/idv.md
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
# Namespace: idv
|
|
2
|
-
|
|
3
|
-
## Functions
|
|
4
|
-
|
|
5
|
-
### recapture
|
|
6
|
-
|
|
7
|
-
▸ **recapture**(): `Promise`<`boolean`\>
|
|
8
|
-
|
|
9
|
-
Recaptures the required images in case the `recapture` status is returned. For example, this may occur in case some data
|
|
10
|
-
couldn't be extracted due to poor image quality.
|
|
11
|
-
|
|
12
|
-
**`Function`**
|
|
13
|
-
|
|
14
|
-
recapture
|
|
15
|
-
|
|
16
|
-
**`Memberof`**
|
|
17
|
-
|
|
18
|
-
module:core
|
|
19
|
-
|
|
20
|
-
**`Example`**
|
|
21
|
-
|
|
22
|
-
```ts
|
|
23
|
-
const showLoader = true;
|
|
24
|
-
tsPlatform.idv.recapture().then((success) => {
|
|
25
|
-
showLoader = false;
|
|
26
|
-
if (success) {
|
|
27
|
-
console.log('Recapture started');
|
|
28
|
-
} else {
|
|
29
|
-
console.log('Recapture not started');
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
#### Returns
|
|
35
|
-
|
|
36
|
-
`Promise`<`boolean`\>
|
|
37
|
-
|
|
38
|
-
Indicates if the session was started successfully
|
|
39
|
-
|
|
40
|
-
___
|
|
41
|
-
|
|
42
|
-
### restart
|
|
43
|
-
|
|
44
|
-
▸ **restart**(): `Promise`<`boolean`\>
|
|
45
|
-
|
|
46
|
-
deprecated use module:tsPlatform.idv.recapture|recapture instead
|
|
47
|
-
TODO: [VER-3126](https://transmitsecurity.atlassian.net/browse/VER-3126)
|
|
48
|
-
|
|
49
|
-
#### Returns
|
|
50
|
-
|
|
51
|
-
`Promise`<`boolean`\>
|
|
52
|
-
|
|
53
|
-
___
|
|
54
|
-
|
|
55
|
-
### start
|
|
56
|
-
|
|
57
|
-
▸ **start**(`startToken?`): `Promise`<`boolean`\>
|
|
58
|
-
|
|
59
|
-
Starts a verification session that was created in the backend (via the [Verification API](/openapi/verify/verifications/#operation/createSession)).
|
|
60
|
-
This will start the verification process for the user and guides them through the entire identity verification flow
|
|
61
|
-
using the Transmit identity verification experience, which includes capturing the required images and submitting them for processing.
|
|
62
|
-
|
|
63
|
-
**`Function`**
|
|
64
|
-
|
|
65
|
-
start
|
|
66
|
-
|
|
67
|
-
**`Memberof`**
|
|
68
|
-
|
|
69
|
-
module:core
|
|
70
|
-
|
|
71
|
-
**`Example`**
|
|
72
|
-
|
|
73
|
-
```ts
|
|
74
|
-
const showLoader = true;
|
|
75
|
-
const startToken = '123456'; // start_token returned by the backend upon session creation
|
|
76
|
-
tsPlatform.idv.start(startToken).then((started) => {
|
|
77
|
-
showLoader = false;
|
|
78
|
-
if (started) {
|
|
79
|
-
console.log('Session started');
|
|
80
|
-
} else {
|
|
81
|
-
console.log('Session not started');
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
```
|
|
85
|
-
|
|
86
|
-
#### Parameters
|
|
87
|
-
|
|
88
|
-
| Name | Type | Description |
|
|
89
|
-
| :------ | :------ | :------ |
|
|
90
|
-
| `startToken?` | `string` | The start_token returned by the backend when the session was created, used to bind the session to the device |
|
|
91
|
-
|
|
92
|
-
#### Returns
|
|
93
|
-
|
|
94
|
-
`Promise`<`boolean`\>
|
|
95
|
-
|
|
96
|
-
Indicates if the session was started successfully
|
|
97
|
-
|
|
98
|
-
___
|
|
99
|
-
|
|
100
|
-
### version
|
|
101
|
-
|
|
102
|
-
▸ **version**(): `string`
|
|
103
|
-
|
|
104
|
-
#### Returns
|
|
105
|
-
|
|
106
|
-
`string`
|