douglasjunior / react-native-recaptcha-that-works

⚛ A reCAPTCHA bridge for React Native that works (Android and iOS)
MIT License
167 stars 33 forks source link

How to handle onExpire event #19

Closed victor-cui-brigit closed 2 years ago

victor-cui-brigit commented 2 years ago

Is it expected to open the recaptcha again with recaptcha.current?.open() on the onExpire callback? If not, how is the expiration usually handled?

douglasjunior commented 2 years ago

onExpire is just a callback to notify you.

Google says: ... executed when the reCAPTCHA response expires and the user needs to re-verify.

Docs: https://developers.google.com/recaptcha/docs/display#render_param