mrgoonie / flutter_recaptcha_v2

A Flutter plugin for Google Recaptcha V2
Other
23 stars 63 forks source link

Return captcha response and make apiSecret optional #12

Closed raddatzk closed 3 years ago

raddatzk commented 3 years ago

I wanted to use this plugin but I only need the response of the captcha challenge. These changes make apiSecret optional as the signature will not be validated locally but on a server. Also both callbacks now return the result of the token challenge

boris-hocde commented 3 years ago

Finally this makes this plugin useful, I'm going to test this right now :)

IMO the apiSecret & token verification call should be completely removed from here. The secret must be kept secret, and should not be distributed to final users.