var sliderCaptcha = require('@react-slider-captcha/core'); app.get('/captcha/create', function (req, res) { sliderCaptcha.create() .then(function ({data, solution}) { req.session.captcha = solution; req.session.save(); res.status(200).send(data); }); }); app.post('/captcha/verify...
React: import SliderCaptcha from '@tokensuite/react-slider-captcha-v2-react'; function verifiedCallback(token) { console.log('Captcha token: ' + token); } function App() { return ( <SliderCaptcha create="https://example.com/captcha/create" verify="https://example.com/captcha/verify" callba...
@slider-captcha/react adrsch js User-friendly puzzle slider captcha for React and ExpressVersion 1.0.0 License MIT INSTALL Type: ESM Default Version: Static Open in jsfiddle Learn moreReadme Files Statistics Browse CDN Statistics month Requests 52 Bandwidth 150 kB Top version - 1.0.0 52...
React: import SliderCaptcha from '@slider-captcha/react'; function verifiedCallback(token) { console.log('Captcha token: ' + token); } function App() { return ( <SliderCaptcha create="https://example.com/captcha/create" verify="https://example.com/captcha/verify" callback={verifiedCallback...
import {createCaptcha, verifyCaptcha} from '@tokensuite/react-slider-captcha-v2-core'; // or @tokensuite/react-slider-captcha-v2-core/lib/esm export let solution: number; export default async function handler(req: any, res: any) { createCaptcha() .then((resp: any) => { solution = res...
npm i @slider-captcha/react Backend: npm i @slider-captcha/core Usage React: import SliderCaptcha from '@slider-captcha/react'; function verifiedCallback(token) { console.log('Captcha token: ' + token); } function App() { return ( <SliderCaptcha create="https://example.com/captcha/create...
React frontend: npm i @slider-captcha/react Backend: npm i @slider-captcha/core Usage React: import SliderCaptcha from '@slider-captcha/react'; function verifiedCallback(token) { console.log('Captcha token: ' + token); } function App() { return ( <SliderCaptcha create="https://example.com...