Polyv Help Center

Help Center

Watch Condition - No Condition Required

Updated: 2024-10-10 17:27:10

1. Configuration Information

1.1 No Condition Watch Configuration

Interface: AuthSettingItemNone

Property Description Type
authType Condition Type None

2. Usage

3. Verify No Condition Watch

When no watch restrictions are set and the admin panel has the guide page enabled, a no-condition watch verification is required to enter the live streaming page.

API Method: verifyNoneAuth(): Promise<VerifyNoneAuthResult>

Return Value Description: Authorization result, Promise<VerifyNoneAuthResult> type

Example:

// 执行无条件授权
async function toDoAuthNone() {
  const result = await watchCore.auth.verifyNoneAuth();
  if (result.success) {
    await handleAuthVerifySuccess(result);
  } else {
    await handleAuthVerifyFail(result);
  }
}
联系客服,在线咨询
在线咨询