basaran / svelte-recaptcha-v2

Google reCAPTCHA v2 implementation for Svelte SPA, SSR and sveltekit static sites.
https://basaran.github.io/svelte-recaptcha-v2/demo
MIT License
42 stars 14 forks source link

userTracker.resolve(event); #19

Open escapingSamsara opened 7 months ago

escapingSamsara commented 7 months ago

what is the userTracker ? it is undefined for me. Also do i need a v2 key ? where would i use the secret key ? does it work with enterprise key too ?

basaran commented 4 months ago

Hello, it was included in the readme as an example. It's not required to have a userTracker in your success event.

Also do i need a v2 key ? where would i use the secret key ? does it work with enterprise key too ?

For recaptcha, you need two keys, one for your front end and one for your backend. Please read the google documentation for implementation details.