Skip to main content

talawa-api / Exports / setup/reCaptcha

Module: setup/reCaptcha

Table of contents

Functions

Functions

validateRecaptcha

validateRecaptcha(string): boolean

The function validates whether a given string matches the pattern of a reCAPTCHA token.

Parameters

NameTypeDescription
stringstringThe string parameter represents the input string that needs to be validated. In this case, it is expected to be a string containing a Recaptcha response token.

Returns

boolean

a boolean value.

Defined in

src/setup/reCaptcha.ts:7