DVTestBotProtection class
A provider that accepts a fixed set of tokens. For tests.
- Implemented types
Constructors
-
DVTestBotProtection({Set<
String> acceptedTokens = const <String>{}, Object? failWith})
Properties
-
acceptedTokens
→ Set<
String> -
final
- failWith → Object?
-
Thrown from verify, to exercise a provider that is down.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- provider → String
-
For logs:
turnstile,hcaptcha,test.no setteroverride - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
verify(
String? token, {String? action, String? source}) → Future< DVBotVerdict> -
Verifies the token the challenge widget produced.
actionnames what is being protected (sign-up);sourceis the client address, which some providers check the token against.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited