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
tokenstringThe token produced by the client.
checkboxModebooltrueuses the checkbox key (step-up challenge);falseuses the score key (invisible).cancellationTokenCancellationTokenToken to cancel the operation.
Returns
- Task<CaptchaVerification>
The verification result. An empty token or a communication failure yields Valid =
false(fail-closed).