# CrossDeviceRegistrationHandlers

## Hierarchy

- `BaseCrossDeviceHandlers`
↳ **`CrossDeviceRegistrationHandlers`**


## Properties

### onDeviceAttach

• **onDeviceAttach**: () => `Promise`<`void`>

#### Type declaration

▸ (): `Promise`<`void`>

Called when the user has successfully attached a device to the cross-device flow using the [attachDevice](/sdk-ref/authnsdk/interfaces/webauthncrossdeviceflows#attachdevice) method.

##### Returns

`Promise`<`void`>

#### Inherited from

BaseCrossDeviceHandlers.onDeviceAttach

### onFailure

• **onFailure**: (`error`: [`ApiCrossDeviceStatusResponse`](/sdk-ref/authnsdk/interfaces/apicrossdevicestatusresponse)) => `Promise`<`void`>

#### Type declaration

▸ (`error`): `Promise`<`void`>

Called when there was an error in the cross-device flow with status response [ApiCrossDeviceStatusResponse](/sdk-ref/authnsdk/interfaces/apicrossdevicestatusresponse).

##### Parameters

| Name | Type |
|  --- | --- |
| `error` | [`ApiCrossDeviceStatusResponse`](/sdk-ref/authnsdk/interfaces/apicrossdevicestatusresponse) |


##### Returns

`Promise`<`void`>

#### Inherited from

BaseCrossDeviceHandlers.onFailure

### onCredentialRegister

• **onCredentialRegister**: () => `Promise`<`void`>

#### Type declaration

▸ (): `Promise`<`void`>

Called upon successful webauthn registration.

##### Returns

`Promise`<`void`>