# Class TokenProperties (1.32.0)

1.32.0 (latest) 1.29.0 1.28.2 1.27.0 1.26.1 1.25.0 1.24.1 1.23.0 1.22.0 1.21.2 1.20.0 1.19.1 1.18.1 1.17.1 1.16.1 1.15.0 1.14.0 1.13.0 1.12.1 1.11.1 1.10.0 1.9.0 1.8.3 1.7.1 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.2 1.0.0 0.4.2 0.3.3 0.2.1 0.1.0

    TokenProperties(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Properties of the provided event token.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `valid` | `bool` Output only. Whether the provided user response token is valid. When valid = false, the reason could be specified in invalid_reason or it could also be due to a user failing to solve a challenge or a sitekey mismatch (i.e the sitekey used to generate the token was different than the one specified in the assessment). |
| `invalid_reason` | `https://docs.cloud.google.com/python/docs/reference/recaptchaenterprise/latest/google.cloud.recaptchaenterprise_v1.types.TokenProperties.InvalidReason` Output only. Reason associated with the response when valid = false. |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The timestamp corresponding to the generation of the token. |
| `hostname` | `str` Output only. The hostname of the page on which the token was generated (Web keys only). |
| `android_package_name` | `str` Output only. The name of the Android package with which the token was generated (Android keys only). |
| `ios_bundle_id` | `str` Output only. The ID of the iOS bundle with which the token was generated (iOS keys only). |
| `action` | `str` Output only. Action name provided at token generation. |

## Classes

### InvalidReason

    InvalidReason(value)

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

        - 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`