Skip to main content

Type Alias: IIdentityClient

IIdentityClient: {onCloseScreen: (onCloseScreenCallback: () => Promise\<string>) => void;onKycCompletion: (kycCompletionCallback: (data: any[]) => void) => void;onSignMessage: (signPersonalDataCallback: (data: {message: string; }) => Promise\<BlockchainSignature>) => void; }

Type declaration

onCloseScreen()

onCloseScreen: (onCloseScreenCallback: () => Promise\<string>) => void

Set a callback for handling the closing of the kyc modal.

Parameters

onCloseScreenCallback

The callback function to call before screen is closed.

Returns

void

onKycCompletion()

onKycCompletion: (kycCompletionCallback: (data: any[]) => void) => void

Set a callback for handling kyc completion data.

Parameters

kycCompletionCallback

The callback function to handle kyc completion data.

Returns

void

onSignMessage()

onSignMessage: (signPersonalDataCallback: (data: {message: string; }) => Promise\<BlockchainSignature>) => void

Set a callback for signing personal data. It needs to be set before calling start functions.

Parameters

signPersonalDataCallback

The callback function to sign personal data.

Returns

void