chore(js/frontend): migrate faucet verification to Cloudflare Turnstile#815
Merged
nikitayutanov merged 2 commits intomainfrom Feb 27, 2026
Merged
chore(js/frontend): migrate faucet verification to Cloudflare Turnstile#815nikitayutanov merged 2 commits intomainfrom
nikitayutanov merged 2 commits intomainfrom
Conversation
osipov-mit
approved these changes
Feb 27, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR migrates the faucet verification system from hCaptcha to Cloudflare Turnstile. The change involves replacing the captcha library, updating environment variables across the deployment pipeline, and redesigning the verification UI to use an overlay modal approach instead of an invisible widget.
Changes:
- Replaced
@hcaptcha/react-hcaptchapackage with@marsidev/react-turnstilelibrary - Refactored the verification flow to use manual execution with visual feedback via an overlay
- Updated environment variable names from
VITE_HCAPTCHA_SITEKEYtoVITE_TURNSTILE_SITEKEYacross Dockerfile and GitHub workflow
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Removed hCaptcha packages and dependencies, added @marsidev/react-turnstile package |
| js/frontend/src/features/faucet/consts.ts | Updated constant name from HCAPTCHA_SITEKEY to TURNSTILE_SITEKEY |
| js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.tsx | Replaced hCaptcha implementation with Turnstile, added overlay modal and state management for verification visibility |
| js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.module.scss | Added overlay styles with backdrop blur for verification widget |
| js/frontend/package.json | Updated package dependency from @hcaptcha/react-hcaptcha to @marsidev/react-turnstile |
| js/frontend/Dockerfile | Updated environment variable from VITE_HCAPTCHA_SITEKEY to VITE_TURNSTILE_SITEKEY |
| .github/workflows/deploy-frontend.yml | Updated environment variable from VITE_HCAPTCHA_SITEKEY to VITE_TURNSTILE_SITEKEY |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.module.scss
Show resolved
Hide resolved
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.tsx
Show resolved
Hide resolved
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.tsx
Outdated
Show resolved
Hide resolved
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.tsx
Show resolved
Hide resolved
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.tsx
Show resolved
Hide resolved
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.tsx
Outdated
Show resolved
Hide resolved
dafcf13 to
0cc2352
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.