Skip to content

isCaptchaRequiredForEndpoint

isCaptchaRequiredForEndpoint(config, endpoint): boolean

Check if CAPTCHA is required for a specific endpoint

ParameterTypeDescription
configundefined | CaptchaConfigCAPTCHA configuration from useCaptchaConfig
endpointstringThe endpoint to check (e.g., ‘signup’, ‘login’, ‘password_reset’)

boolean

Whether CAPTCHA is required for this endpoint