VerifierSelect
Usage scenario: you need to select a verifier for verification during registration.
Operations:
- Select from the dropdown menu or click an icon to choose.
- 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
Property | Description | Type | Default | Version |
---|---|---|---|---|
chainId | Chain ID where user account is registered | ChainId | AELF | |
sandboxId | Only required when used in a Chrome extension. | string | - | |
verifierList | Default verifier list | VerifierItem[] | - | |
defaultVerifier | Default verifier service ID (VerifierItem['id']) | string | The first verifier | |
guardianIdentifier | Identifier information (email, phone, Google ID, Apple ID) | string | - | |
className | Class name of the top level container | string | - | |
accountType | Identifier type | AccountType | ||
isErrorTip | Is error tip set as default | boolean | true | |
operationType | Operation type | OperationTypeEnum | OperationTypeEnum.register | |
chainType | ChainType | aelf | ||
googleAccessToken | asses_token obtained when Google signs up or logs in | string | - | |
appleIdToken | id_token obtained when Apple signs up or logs in | string | - | |
onError | Callback of error | (error: {errorFields:string, error: any}) => void; | - | |
onConfirm | Callback of finishing | (result: VerifierSelectConfirmResult) => void; | - |