{"_id":"react-cloudflare-turnstile","_rev":"45-bd2c4771f1927d8608aaca06de419aaf","name":"react-cloudflare-turnstile","dist-tags":{"latest":"2.0.0"},"versions":{"1.1.1":{"name":"react-cloudflare-turnstile","version":"1.1.1","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.1","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"4b8fd52e31d484f9f9bca7bdf89586cce311e012","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.1.tgz","fileCount":8,"integrity":"sha512-JRZBapDgqyzw62NbW5LlDQWPUL0c5FYgwaOQG17ZxAQtraZoWMajTr/urTNmjrr2WshBRogJupk3BhWZmmB1kw==","signatures":[{"sig":"MEQCIBV9TOb8H9nwQ65ZKbTshqoCKe3YLJYGMY4VRsgQWr8bAiBl5lvp0JE0WzRzqr/BJUtZL+PmmWGpnSuoRnZSCinl7w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20745},"main":"dist/index.js","types":"dist/index.d.ts","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"513a2c3225382c161f66268e64efb6dade3bcf1d","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.1_1741508545263_0.23778447472542474","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"react-cloudflare-turnstile","version":"1.1.2","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.2","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"88cf48470df6a99867ad190439582913d1916d42","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.2.tgz","fileCount":8,"integrity":"sha512-Ho0unHLLCiiBNY+hLbegcBQtkgIW2MgsqU6aBjhg6IOxXaYxPHsfGZmcXKmpT0IujAw/5cM6LrMjZGGt29pNvw==","signatures":[{"sig":"MEYCIQDogOOXalJTMxx0C7TIAieVK3dFE2oOlvoHPN9xBLSxjgIhAM9heVZ1F3mhdoKpUgs80zxcbFax0CSEjrJp8GkxV/vp","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20427},"main":"dist/index.js","types":"dist/index.d.ts","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"c2e22b519b9995d6d064139248c9c8c3e3ddfa9e","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.2_1741509263498_0.15320159023592317","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"react-cloudflare-turnstile","version":"1.1.4","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.4","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"2be68493a0fed763bfda982e5db007f67a43f7ec","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.4.tgz","fileCount":8,"integrity":"sha512-SRT6LStD9G/YyopCXW4GJ6kBh67c+FPApZCzCrtb8dOGckOI/3ci6sojt59f2hmweO5SkaCQTZGcPvYfW4VEgQ==","signatures":[{"sig":"MEUCIC9NGYnyJ+OAlQQ608bR8giOwa/hjGNmPJSGMpQ1IfvEAiEA9KHZbtIo+K+t5sH0OoXZivj4C9pom4NdivqrweKdLCc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":20507},"main":"dist/index.js","types":"dist/index.d.ts","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"29b91768b7b3f429cc6218905d85d774a4cd114c","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.4_1742081244570_0.7578645864811717","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"react-cloudflare-turnstile","version":"1.1.5","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.5","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"c506c4f89aca14fff8019bd1d92ae3d41aeddd8a","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.5.tgz","fileCount":8,"integrity":"sha512-L0obTtOBkkjt0SavxYUt3807RaXD8MesqfwD2qDL6a4jtTf7+l41fdn+kiO6nE57TWRINUFCCqVvBWybrxuMEQ==","signatures":[{"sig":"MEUCIQDwxgllw8ESCykIIPLiZlit+93KF9iMlvUi6uyQ4lXLDQIgVaVUlR7irmb//xduTIkZv1iz8tUi4x09wZDzqo8gB5I=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18959},"main":"dist/index.js","types":"dist/index.d.ts","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"f3365c9556a051e3d8708a4424defb9e1e2df003","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.5_1742083739431_0.8090839420163933","host":"s3://npm-registry-packages-npm-production"}},"1.1.6":{"name":"react-cloudflare-turnstile","version":"1.1.6","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.6","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"89e1d07dbc7196399c54d2233df233e57f2ef5c2","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.6.tgz","fileCount":8,"integrity":"sha512-ocs9Ht4USWr2oS0Y9E0wkOxdZVvhACI0JuCydhxcARH8sFCNgDBvXfrh2c0oghAfe/yQzy7FSYSKePToXUTO8Q==","signatures":[{"sig":"MEQCIEGsY+V0fk7oJKMuUaFHEoWyZS1K2NLNKnVug8vpJiZbAiBwREoYbxHvU8nIqKKDhr6AbQAuC8kRUXtGQ1HUDwFJOg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18990},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"d48fdca9faef4f4447a57c92911796ccc641b87c","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.6_1742621211869_0.22567931651708073","host":"s3://npm-registry-packages-npm-production"}},"1.1.8":{"name":"react-cloudflare-turnstile","version":"1.1.8","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.8","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"62cf160325aa86fb6fea35389a70dc5f78fa5253","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.8.tgz","fileCount":12,"integrity":"sha512-LJpdm/ah+XIdY2duVE+5YJvlL21bmuv+hLINlg7GO2+38eFk3bc3Nwkfo4lTw5EyzwytpcLkAdMP0IDhjJ53Ag==","signatures":[{"sig":"MEYCIQCkjFm0Q9hFftFFWQuRwRFmdUQrzoS8pQgW4PX99vbcDAIhAN+kuWIePlj9O9VoLzanOnoww12+KLt+WIGkWIBXV3+f","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19620},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"4fbd8ec77d67911f4f13aa71ab3048b6b134246b","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.8_1742626059696_0.421113885758847","host":"s3://npm-registry-packages-npm-production"}},"1.1.9":{"name":"react-cloudflare-turnstile","version":"1.1.9","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.9","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"e0aa1b4a5b9528f0ec8334e3a178dcd9dc13a833","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.9.tgz","fileCount":12,"integrity":"sha512-+PcW5ngThVLkJU/wVuXyNlewAsAwk0qiyFVBPB5h8NGmfzfTH66uT3BxOZw3N4/9mLcNinahzyFccxs3L6SZdw==","signatures":[{"sig":"MEUCIEeH+eS5PyKCxiJcObp2/UCX9yyTQAhJYlNwi4oRkT5xAiEA+4mtQyT649EyQp+rrNxi4AK4sSLv5IaSsw8TuRbsnL0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":19863},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"1a30400927d076eaad1196df724b5ff6b1ac9538","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.9_1742711269538_0.7565206312082813","host":"s3://npm-registry-packages-npm-production"}},"1.1.11":{"name":"react-cloudflare-turnstile","version":"1.1.11","keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","_id":"react-cloudflare-turnstile@1.1.11","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"dist":{"shasum":"a30d3d1f9094ea5f4f1f0e5fd6a77c09f0233ab4","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-1.1.11.tgz","fileCount":12,"integrity":"sha512-JuBSqkBJqatxZkxQuM+zioSA3fMvnogG17aTzDW6yB1xZFIQ6piLeXhQjP/xVEOleQkHh6/fXCqtgBiSX8xeLg==","signatures":[{"sig":"MEQCIGf5k0rL0c29nnKji2KyaQ/u8I9eAUup9bA0mNwOaF7xAiBjkFQbkXlR3qGm5uAhv/VWCN5cev07RGA2DqwBzKW7Gw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23631},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.js","exports":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"},"gitHead":"ecc220859d74fafd90c237f38a97d2e77a83a043","scripts":{"build":"tsc"},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"repository":{"url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git","type":"git"},"_npmVersion":"10.9.2","description":"Simple react wrapper for the Cloudflare Turnstile","directories":{},"_nodeVersion":"23.8.0","publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.2","@types/node":"^22.13.10","@types/react":"^19.0.10","@types/cloudflare-turnstile":"^0.2.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_npmOperationalInternal":{"tmp":"tmp/react-cloudflare-turnstile_1.1.11_1742715359451_0.31073209845462846","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"react-cloudflare-turnstile","version":"2.0.0","description":"Simple react wrapper for the Cloudflare Turnstile","module":"dist/index.js","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc"},"exports":{"import":"./dist/index.js","require":"./dist/index.js","types":"./dist/index.d.ts"},"repository":{"type":"git","url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"keywords":["cloudflare","turnstile"],"author":{"name":"KevinAshley"},"license":"MIT","bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","devDependencies":{"@types/cloudflare-turnstile":"^0.2.2","@types/node":"^22.13.10","@types/react":"^19.0.10","typescript":"^5.8.2"},"peerDependencies":{"react":">= 17.0.0","react-dom":">= 17.0.0"},"_id":"react-cloudflare-turnstile@2.0.0","gitHead":"84986e1d79accfd71d92fc78cb873ab31fdde30b","_nodeVersion":"23.8.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-wWkOOH8uq8UIcyyqAcz+hBtRJNGeCwaoTi+qcIBR8t0QumHida1wZ8ZpcG+GuM3BIirq0T++C0TRICrxxC3fLA==","shasum":"730b03788b34208aa8efce77d347fe81598244e3","tarball":"https://registry.npmjs.org/react-cloudflare-turnstile/-/react-cloudflare-turnstile-2.0.0.tgz","fileCount":12,"unpackedSize":25305,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCgGobIWRknkpaO7UPDU1t9Ij+20wQw8VvVX/w8WCx11QIgfXJD1fUAxcLZFZFNh1ajZZizcXE5LTxNJB+X/ykFVAU="}]},"_npmUser":{"name":"kevinashley","email":"kashley3141@gmail.com"},"directories":{},"maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-cloudflare-turnstile_2.0.0_1747527541098_0.345393029939991"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-06T04:24:44.473Z","modified":"2025-05-18T00:19:01.522Z","1.0.0":"2025-03-06T04:24:44.618Z","1.0.1":"2025-03-09T00:25:44.425Z","1.0.2":"2025-03-09T00:54:25.263Z","1.0.3":"2025-03-09T01:18:53.357Z","1.0.4":"2025-03-09T01:23:23.316Z","1.0.5":"2025-03-09T01:28:14.869Z","1.0.6":"2025-03-09T01:32:27.028Z","1.0.7":"2025-03-09T02:12:52.372Z","1.0.8":"2025-03-09T03:02:20.506Z","1.0.9":"2025-03-09T03:13:16.660Z","1.0.11":"2025-03-09T04:11:30.580Z","1.0.12":"2025-03-09T04:28:45.148Z","1.0.13":"2025-03-09T06:02:22.154Z","1.0.14":"2025-03-09T06:14:48.325Z","1.0.15":"2025-03-09T07:48:59.930Z","1.0.16":"2025-03-09T08:05:49.872Z","1.1.1":"2025-03-09T08:22:25.435Z","1.1.2":"2025-03-09T08:34:23.721Z","1.1.4":"2025-03-15T23:27:24.749Z","1.1.5":"2025-03-16T00:08:59.700Z","1.1.6":"2025-03-22T05:26:52.072Z","1.1.7":"2025-03-22T06:37:26.537Z","1.1.8":"2025-03-22T06:47:39.859Z","1.1.9":"2025-03-23T06:27:49.749Z","1.1.10":"2025-03-23T06:46:54.696Z","1.1.11":"2025-03-23T07:35:59.747Z","2.0.0":"2025-05-18T00:19:01.278Z"},"bugs":{"url":"https://github.com/KevinAshley/react-cloudflare-turnstile/issues"},"author":{"name":"KevinAshley"},"license":"MIT","homepage":"https://github.com/KevinAshley/react-cloudflare-turnstile#readme","keywords":["cloudflare","turnstile"],"repository":{"type":"git","url":"git+https://github.com/KevinAshley/react-cloudflare-turnstile.git"},"description":"Simple react wrapper for the Cloudflare Turnstile","maintainers":[{"name":"kevinashley","email":"kashley3141@gmail.com"}],"readme":"# React Cloudflare Turnstile\n\nA simple and lightweight React component for [Cloudflare's Turnstile](https://developers.cloudflare.com/turnstile/).\n\n## Installation\n\n```sh\nnpm i react-cloudflare-turnstile\n```\n\n## Basic Usage\n\n#### Client-Side (React)\n\n```jsx\nimport ReactCloudflareTurnstile from \"react-cloudflare-turnstile\";\n\nfunction MyComponent() {\n    // ...\n    return (\n        <ReactCloudflareTurnstile\n            turnstileSiteKey={\"YOUR_CLOUDFLARE_TURNSTILE_SITE_KEY\"}\n            callback={(token) => {\n                // save the token, validate it server-side\n            }}\n        />\n    );\n}\n```\n\n#### Server-Side (Node.js) \\*\n\n```js\nimport { verifyTurnstileToken } from \"react-cloudflare-turnstile\";\n\nfunction handleFormSubmission(values: FormValuesInterface) {\n    try {\n        const { token } = values;\n        await verifyTurnstileToken({\n            turnstileSecretKey: \"YOUR_CLOUDFLARE_TURNSTILE_SECRET_KEY\",\n            token,\n        });\n        // ...\n    } catch (error) {\n        // ...\n    }\n}\n```\n\n\\* The _verifyTurnstileToken_ function is exported as a convenience for Node.js / Next.js servers.\\\n If you have a different back end, or simply prefer to write your own handler, the documentation is here:\\\n [https://developers.cloudflare.com/turnstile/get-started/server-side-validation/](https://developers.cloudflare.com/turnstile/get-started/server-side-validation/)\n\n## Advanced Usage\n\n#### Client-Side (React)\n\nLearn more about these Advanced Usage props here:\\\n[https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configurations](https://developers.cloudflare.com/turnstile/get-started/client-side-rendering/#configurations)\n\n```jsx\nimport ReactCloudflareTurnstile from \"react-cloudflare-turnstile\";\n\nfunction MyComponent() {\n    // ...\n    return (\n        <ReactCloudflareTurnstile\n            turnstileSiteKey={\"YOUR_CLOUDFLARE_TURNSTILE_SITE_KEY\"}\n            callback={(token) => {\n                // save the token, validate it server-side\n            }}\n            // =====================================\n            // ADVANCED USAGE PROPS BELOW (OPTIONAL)\n            // =====================================\n            theme={\"auto\"} // (\"auto\" | \"light\" | \"dark\")\n            size={\"normal\"} // (\"normal\" | \"flexible\" | \"compact\")\n            execution={\"render\"} // (\"execute\" | \"render\")\n            action={\"WIDGET_IDENTIFIER\"} // (string)\n            cData={\"CUSTOMER_DATA\"} // (string)\n            language={\"auto\"} // (\"auto\" | \"en-US\" | ...)\n            tabIndex={0} // (number)\n            responseField={true} // (boolean)\n            responseFieldName={\"cf-turnstile-response\"} // (string)\n            retry={\"auto\"} // (\"auto\" | \"never\")\n            retryInterval={8000} // (number)\n            refreshExpired={\"auto\"} // (\"auto\" | \"manual\" | \"never\")\n            refreshTimeout={\"auto\"} // (\"auto\" | \"manual\" | \"never\")\n            beforeInteractiveCallback={() => {\n                // ...\n            }}\n            afterInteractiveCallback={() => {\n                // ...\n            }}\n            unsupportedCallback={() => {\n                // ...\n            }}\n            errorCallback={(error) => {\n                // ...\n            }}\n            expiredCallback={(token) => {\n                // ...\n                // NOTE: if no callback is passed,\n                // we set a \"fallback\" expiredCallback\n                // as a convenience that...\n                // 1.) Executes your callback with an\n                //     empty string token\n                // 2.) Resets the Turnstile\n            }}\n        />\n    );\n}\n```\n","readmeFilename":"README.md"}