Skip to content

Commit 4cd1e2d

Browse files
authored
Add onChange prop to invisible captcha
It's worth mentioning that you should pass `onChange` callback as well when initializing an invisible version. I spent some time trying to figure out how to get the token after calling `execute()`
1 parent 4b45c92 commit 4cd1e2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ ReactDOM.render(
103103
ref={recaptchaRef}
104104
size="invisible"
105105
sitekey="Your client site key"
106+
onChange={onChange}
106107
/>
107108
</form>,
108109
document.body

0 commit comments

Comments
 (0)