HMS SafetyDetect return token timeout-or-duplicate

Viewed 252

On some devices with HMS SDK SafetyDetect, captcha returns a token, when checked, the Huawei server responds

{
    "error-codes": "timeout-or-duplicate",
    "success": false
}

I am sure of the correct implementation of the library, everything works correctly on the part of devices. This problem arose about 2 weeks ago. Perhaps the version of HMS Core somehow affects. Has anyone faced a similar issue in their applications?

versions: com.huawei.hms:safetydetect:6.1.0.302

com.huawei.agconnect:agcp:1.6.1.300

1 Answers

{ "error-codes": "timeout-or-duplicate", "success": false }

If this error code is displayed, the response parameter is invalid, has expired, or has been used.

You need to use the client interface to obtain the responseToken again and invoke the restApi interface again.

For details, kindly check this docs.

Related