CaptchaPlugin<TContext> class final

Opt-in captcha protection for credential registration and sign-in.

Implemented types

Constructors

CaptchaPlugin({required AuthCaptchaVerifier<TContext> verifier, AuthCaptchaPluginConfig config = const AuthCaptchaPluginConfig()})
Creates a captcha policy plugin backed by verifier.

Properties

config → AuthCaptchaPluginConfig
Bounds and replay policy applied before verification.
final
dataContract → AuthServerPluginDataContract
Declares data and destructive routes owned by this plugin.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
id → String
Stable plugin identifier.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
verifier → AuthCaptchaVerifier<TContext>
Application-owned verifier used for vendor calls.
final

Methods

configure(AuthServerPluginContext<TContext> context) → void
Configures this plugin against the shared runtime context.
override
enforceCredentialPolicy(AuthCredentialPolicyRequest<TContext> request) → Future<void>
Enforces application policy before credentials are accepted.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited