Skip to content

Commit 39274ec

Browse files
1 parent 39e0909 commit 39274ec

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/RecaptchaEnterprise/GoogleCloudRecaptchaenterpriseV1TokenProperties.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ class GoogleCloudRecaptchaenterpriseV1TokenProperties extends \Google\Model
5757
* empty `expected_action`
5858
*/
5959
public const INVALID_REASON_UNEXPECTED_ACTION = 'UNEXPECTED_ACTION';
60+
/**
61+
* The key used to generate the token does not match the `site_key`.
62+
*/
63+
public const INVALID_REASON_KEY_MISMATCH = 'KEY_MISMATCH';
64+
/**
65+
* The domain of the page on which the token was generated does not match the
66+
* `allowed_domains` configured in the `site_key`.
67+
*/
68+
public const INVALID_REASON_DOMAIN_MISMATCH = 'DOMAIN_MISMATCH';
6069
/**
6170
* Output only. Action name provided at token generation.
6271
*
@@ -177,7 +186,8 @@ public function getHostname()
177186
* Output only. Reason associated with the response when valid = false.
178187
*
179188
* Accepted values: INVALID_REASON_UNSPECIFIED, UNKNOWN_INVALID_REASON,
180-
* MALFORMED, EXPIRED, DUPE, MISSING, BROWSER_ERROR, UNEXPECTED_ACTION
189+
* MALFORMED, EXPIRED, DUPE, MISSING, BROWSER_ERROR, UNEXPECTED_ACTION,
190+
* KEY_MISMATCH, DOMAIN_MISMATCH
181191
*
182192
* @param self::INVALID_REASON_* $invalidReason
183193
*/

0 commit comments

Comments
 (0)