How to use it
First, you need to enable captcha in the Dynamic dashboard. Then, you can use theisCaptchaRequired
and setCaptchaToken
functions to check if captcha is required and set the captcha token respectively.
You can implement captcha in your own way, just make sure you call setCaptchaToken
when the captcha challenge is completed, and that you have it set
before calling one of the sign-in functions from the SDK.
Checking if captcha is required
You can check if captcha is required to decide whether to prompt the user to complete a captcha challenge or not.Setting the captcha token
Once the captcha challenge is completed, you can set the captcha token using thesetCaptchaToken
function.
The SDK will read the captcha token when making the request to the server.