Table of Contents

Interface ICaptchaVerifier

Namespace
NuvTools.Security.Captcha
Assembly
NuvTools.Security.dll

Verifies a CAPTCHA token against the provider (Google reCAPTCHA Enterprise).

public interface ICaptchaVerifier

Methods

VerifyAsync(string?, bool, CancellationToken)

Creates an assessment for the token.

Task<CaptchaVerification> VerifyAsync(string? token, bool checkboxMode, CancellationToken cancellationToken = default)

Parameters

token string

The token produced by the client.

checkboxMode bool

true uses the checkbox key (step-up challenge); false uses the score key (invisible).

cancellationToken CancellationToken

Token to cancel the operation.

Returns

Task<CaptchaVerification>

The verification result. An empty token or a communication failure yields Valid = false (fail-closed).