BaseCrossDeviceHandlers↳
CrossDeviceAuthenticationHandlers
• onDeviceAttach: () => Promise<void>
▸ (): Promise<void>
Called when the user has successfully attached a device to the cross-device flow using the attachDevice method.
Promise<void>
BaseCrossDeviceHandlers.onDeviceAttach
• onFailure: (error: ApiCrossDeviceStatusResponse) => Promise<void>
▸ (error): Promise<void>
Called when there was an error in the cross-device flow with status response ApiCrossDeviceStatusResponse.
| Name | Type |
|---|---|
error | ApiCrossDeviceStatusResponse |
Promise<void>
BaseCrossDeviceHandlers.onFailure
• onCredentialAuthenticate: (sessionId: string) => Promise<void>
▸ (sessionId): Promise<void>
Called upon successful webauthn authentication.
| Name | Type | Description |
|---|---|---|
sessionId | string | Session ID that will be exchanged for the user's access and ID tokens using the /v1/auth/session/authenticate API |
Promise<void>