UNPKG

recaptcha-v3-verify

Version:

A TypeScript npm plugin for verifying reCAPTCHA tokens.

10 lines (9 loc) 306 B
interface RecaptchaResponse { success: boolean; challenge_ts?: string; hostname?: string; 'error-codes'?: string[]; error_message?: string; } declare function verifyRecaptcha(secret: string, response: string, remote_ip?: string): Promise<RecaptchaResponse>; export { verifyRecaptcha };