Copied!

Enum that represents the types of invalid token reasons.

Protobuf type google.cloud.recaptchaenterprise.v1.TokenProperties.InvalidReason

CloneableInstantiable
Constants
public Google\Cloud\RecaptchaEnterprise\V1\TokenProperties\InvalidReason::BROWSER_ERROR = 6
 

A retriable error (such as network failure) occurred on the browser.

Could easily be simulated by an attacker.

Generated from protobuf enum BROWSER_ERROR = 6;

public Google\Cloud\RecaptchaEnterprise\V1\TokenProperties\InvalidReason::DUPE = 4
 

The user verification had already been seen.

Generated from protobuf enum DUPE = 4;

public Google\Cloud\RecaptchaEnterprise\V1\TokenProperties\InvalidReason::EXPIRED = 3
 

The user verification token had expired.

Generated from protobuf enum EXPIRED = 3;

public Google\Cloud\RecaptchaEnterprise\V1\TokenProperties\InvalidReason::INVALID_REASON_UNSPECIFIED = 0
 

Default unspecified type.

Generated from protobuf enum INVALID_REASON_UNSPECIFIED = 0;

public Google\Cloud\RecaptchaEnterprise\V1\TokenProperties\InvalidReason::MALFORMED = 2
 

The provided user verification token was malformed.

Generated from protobuf enum MALFORMED = 2;

public Google\Cloud\RecaptchaEnterprise\V1\TokenProperties\InvalidReason::MISSING = 5
 

The user verification token was not present.

Generated from protobuf enum MISSING = 5;

public Google\Cloud\RecaptchaEnterprise\V1\TokenProperties\InvalidReason::UNKNOWN_INVALID_REASON = 1
 

If the failure reason was not accounted for.

Generated from protobuf enum UNKNOWN_INVALID_REASON = 1;

Methods
public static name( $value)
public static value( $name)
Properties
private static $valueToName = ['INVALID_REASON_UNSPECIFIED', 'UNKNOWN_INVALID_REASON', 'MALFORMED', 'EXPIRED', 'DUPE', 'MISSING', 'BROWSER_ERROR']
Properties
private static $valueToName = ['INVALID_REASON_UNSPECIFIED', 'UNKNOWN_INVALID_REASON', 'MALFORMED', 'EXPIRED', 'DUPE', 'MISSING', 'BROWSER_ERROR']
Methods
public static name( $value)
public static value( $name)
© 2025 Bruce Wells
Search Namespaces \ Classes
Configuration