Skip to content

isCaptchaRequiredForEndpoint

isCaptchaRequiredForEndpoint(config, endpoint): boolean

Check if CAPTCHA is required for a specific endpoint

Parameter Type Description
config CaptchaConfig | undefined CAPTCHA configuration from useCaptchaConfig
endpoint string The endpoint to check (e.g., ‘signup’, ‘login’, ‘password_reset’)

boolean

Whether CAPTCHA is required for this endpoint