Skip to main content

VerifierSelect

Usage scenario: you need to select a verifier for verification during registration.

Operations:

  1. Select from the dropdown menu or click an icon to choose.
  2. Click Confirm and return the selection result.

Usage

<VerifierSelect
guardianIdentifier={'105383420233267798964'}
accountType={'Google'}
onError={(error: any) => {
console.log('onError:', error);
}}
onConfirm={result => {
console.log('onConfirm:', result);
}}
/>

API

PropertyDescriptionTypeDefaultVersion
chainIdChain ID where user account is registeredChainIdAELF
sandboxIdOnly required when used in a Chrome extension.string-
verifierListDefault verifier listVerifierItem[]-
defaultVerifierDefault verifier service ID (VerifierItem['id'])stringThe first verifier
guardianIdentifierIdentifier information (email, phone, Google ID, Apple ID)string-
classNameClass name of the top level containerstring-
accountTypeIdentifier typeAccountTypeEmail
isErrorTipIs error tip set as defaultbooleantrue
operationTypeOperation typeOperationTypeEnumOperationTypeEnum.register
chainTypeChainTypeaelf
googleAccessTokenasses_token obtained when Google signs up or logs instring-
appleIdTokenid_token obtained when Apple signs up or logs instring-
onErrorCallback of error(error: {errorFields:string, error: any}) => void;-
onConfirmCallback of finishing(result: VerifierSelectConfirmResult) => void;-