Skip to content

Methods

Captcha Instance Methods

Shared by SliderCaptcha and ClickCaptcha:

MethodDescription
verify(data)Manually verify captcha
reset()Reset captcha state
refresh()Generate new captcha
destroy()Destroy captcha instance
getData()Get captcha data
getSignedData()Get signed data for backend verification
getStatistics()Get verification statistics
resetStatistics()Reset statistics

PopupCaptcha Instance Methods

MethodDescription
show()Show popup modal
hide()Hide popup modal
isVisible()Get visibility state
getCaptcha()Get inner captcha instance
destroy()Destroy popup instance

InvisibleCaptcha Instance Methods

MethodDescription
getRiskScore()Get current risk score (0-1)
showChallenge()Manually show challenge
destroy()Destroy instance

Statistics Shape

getStatistics() returns:

FieldTypeDescription
totalAttemptsnumberTotal verification attempts
successCountnumberSuccessful verifications
failCountnumberFailed verifications
successRatenumberSuccess rate (0-100)
avgVerifyTimenumberAverage verify time (ms)
avgDragTimenumberAverage drag time (ms)
avgDragDistancenumberAverage drag distance (px)

Released under the MIT License.