SetPinAndManager
Generate manager, set PIN, and add manager to the account
Usage
<SetPinAndAddManager
guardianApprovedList={[]}
verificationType={0}
guardianIdentifier={"105383420233267798964"}
onError={(error: any) => {
console.log(error, "onError SetPinAndAddManager===");
}}
onFinish={(result) => {
console.log(result, "onConfirm SetPinAndAddManager===");
}}
/>
API
Property | Description | Type | Default | Version |
---|---|---|---|---|
type | Judge if it's "register", "recovery", or "addManager" | AddManagerType | - | |
chainId | Chain ID where user account is registered | ChainId | AELF | |
className | Customized class name | string | - | |
onlyGetPin | Judges if only PIN is being retrieved | boolean | - | |
accountType | Identifier type | AccountType | ||
keyboard | Is Portkey numeric keyboard used. Only takes effect on mobile devices | boolean | - | V1.5.3+ |
guardianIdentifier | Identifier information (email, phone, Google ID, Apple ID) | string | - | |
guardianApprovedList | List of completed signature information | GuardiansApproved[] | - | |
isErrorTip | Is error tip set as default | boolean | true | |
onError | Callback of error | error => void; | - | |
onFinish | Callback when sign-up or login is completed | (values: DIDWalletInfo | string) => void; | - | |
onBack | Callback when back is clicked | ()=>void; | - | V1.5.3+ |
onCreatePending | Triggered when the creation/login initiated succeeds | (pendingInfo: CreatePendingInfo) => void; | - |