Reference documentation and code samples for the Google Cloud Recaptcha Enterprise V1 Client class InvalidReason.
Enum that represents the types of invalid token reasons.
Ensure that applications can handle values not explicitly listed.
Protobuf type google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason
Namespace
Google \ Cloud \ RecaptchaEnterprise \ V1 \ TokenPropertiesMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
INVALID_REASON_UNSPECIFIED
Value: 0Default unspecified type.
Generated from protobuf enum INVALID_REASON_UNSPECIFIED = 0;
UNKNOWN_INVALID_REASON
Value: 1If the failure reason was not accounted for.
Generated from protobuf enum UNKNOWN_INVALID_REASON = 1;
MALFORMED
Value: 2The provided user verification token was malformed.
Generated from protobuf enum MALFORMED = 2;
EXPIRED
Value: 3The user verification token had expired.
Generated from protobuf enum EXPIRED = 3;
DUPE
Value: 4The user verification had already been seen.
Generated from protobuf enum DUPE = 4;
MISSING
Value: 5The user verification token was not present.
Generated from protobuf enum MISSING = 5;
BROWSER_ERROR
Value: 6A retriable error (such as network failure) occurred on the browser.
Could easily be simulated by an attacker.
Generated from protobuf enum BROWSER_ERROR = 6;
UNEXPECTED_ACTION
Value: 7The action provided at token generation was different than
the expected_action in the assessment request. The comparison is
case-insensitive. This reason can only be returned if all of the
following are true:
- your
site_keyhas the POLICY_BASED_CHALLENGE integration type - you set an action score threshold higher than 0.0
- you provided a non-empty
expected_action
Generated from protobuf enum UNEXPECTED_ACTION = 7;