# reCAPTCHA Enterprise V1 API - Module Google::Cloud::RecaptchaEnterprise::V1::TokenProperties::InvalidReason (v1.11.0)

1.11.0 (latest) 1.9.1 1.8.0 1.7.1 1.6.0 1.5.1 1.4.1 1.3.0 1.2.0 1.1.0 1.0.0 0.22.0 0.21.0 0.20.1 0.19.0 0.18.0 0.17.3 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.0 0.10.0 0.9.1 0.8.0 0.7.1 Reference documentation and code samples for the reCAPTCHA Enterprise V1 API module Google::Cloud::RecaptchaEnterprise::V1::TokenProperties::InvalidReason.

Enum that represents the types of invalid token reasons.
Ensure that applications can handle values not explicitly listed.

## Constants

### INVALID_REASON_UNSPECIFIED

**value:** 0  
Default unspecified type.

### UNKNOWN_INVALID_REASON

**value:** 1  
If the failure reason was not accounted for.

### MALFORMED

**value:** 2  
The provided user verification token was malformed.

### EXPIRED

**value:** 3  
The user verification token had expired.

### DUPE

**value:** 4  
The user verification had already been seen.

### MISSING

**value:** 5  
The user verification token was not present.

### BROWSER_ERROR

**value:** 6  
A retriable error (such as network failure) occurred on the browser.
Could easily be simulated by an attacker.

### UNEXPECTED_ACTION

**value:** 7  

The 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:

<br />

- your `site_key` has the POLICY_BASED_CHALLENGE integration type
- you set an action score threshold higher than 0.0
- you provided a non-empty `expected_action`