nestjs-cloudflare-turnstile
Version:
NestJS module for Cloudflare Turnstile CAPTCHA verification.
11 lines (10 loc) • 385 B
TypeScript
import { HttpService } from "@nestjs/axios";
import { type TurnstileOptions } from '../interfaces';
export declare class TurnstileService {
private readonly options;
private readonly httpService;
private readonly secretKey;
private readonly apiUrl;
constructor(options: TurnstileOptions, httpService: HttpService);
validateToken(token: string): Promise<any>;
}