Crates.io | recaptcha-verify |
lib.rs | recaptcha-verify |
version | 0.1.5 |
source | src |
created_at | 2023-10-13 23:49:12.055937 |
updated_at | 2024-03-24 01:31:27.924839 |
description | Recaptcha verification helper |
homepage | https://github.com/iganev/recaptcha-verify |
repository | https://github.com/iganev/recaptcha-verify |
max_upload_size | |
id | 1002726 |
size | 12,275 |
Simple, bare-minimum recaptcha verifier helper
This library is supposed to be a (near) drop-in replacement for recaptcha-rs.
The usage is nearly (but not completely) identical.
Here however we use rustls
by default, but you could choose from the following features:
Another key difference is that this library uses tokio 1 as dev dependency and more recent versions of reqwest and serde.
One important change in 0.1.3 is the fact that instead of string we now pass the whole reqwest::Error
in RecaptchaError::HttpError
.
If you previously used the String containing variant, please migrate to using reqwest::Error
.
use recaptcha_verify::{RecaptchaError, verify};
let res:Result<(), RecaptchaError> = verify("secret", "token", None).await;
This library (recaptcha-verify) is open sourced under the MIT License.