Watch Conditions - Whitelist Watch
Updated: 2024-10-10 17:27:10
1. Configuration Information
1.1 Whitelist Watch Condition Configuration Information
Interface: AuthSettingItemPhone
| Property | Description | Type |
|---|---|---|
authType |
Condition Type | Phone |
privacyContent |
Privacy Statement Content | string |
privacyStatus |
Whether to Enable Privacy Statement | YN |
authTips |
Welcome Title | string |
whiteListEntryText |
Entry Text | null | string |
whiteListInputTips |
Input Prompt | string |
2. Usage
2.1 Verify Whitelist Watch
Api Method: verifyPhoneAuth(params: VerifyPhoneAuthParams): Promise<VerifyPhoneAuthResult>
Parameter Description:
- params: Whitelist parameters, type
VerifyPhoneAuthParams, required, detailed type description as follows
| Parameter | Description | Type | Required | Default Value |
|---|---|---|---|---|
phone |
Membership Code Information | string |
Yes | - |
Return Value Description: Authorization result, type Promise<VerifyPhoneAuthResult>
Example:
// 执行白名单授权
async function toDoAuthPhone(phone) {
const result = await watchCore.auth.verifyPhoneAuth({
phone,
});
if (result.success) {
await handleAuthVerifySuccess(result);
} else {
await handleAuthVerifyFail(result);
}
}
