Skip to main content

validateRecaptcha

talawa-apiDocs


talawa-api / setup/reCaptcha / validateRecaptcha

Function: validateRecaptcha()

> validateRecaptcha(string): boolean

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

Parameters

string: string

The 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