Skip to content

Conversation

@Zauras
Copy link
Contributor

@Zauras Zauras commented Jun 17, 2021

Status: BLOCKED - waiting for adding tests

Background (user-story): Need bot validation to prevent getting data which can help hackers flood fiat providers

Implementation:

  1. Add recaptcha scanner for app
  2. Add recaptcha api verification functions
  3. Add Bot Validation Provider component
    • First attempt for validation is seamless using google recaptcha v3 based on AI activity scanner
    • Second attempt (automatically starting if first failed) - with user interaction using google recaptcha v2 checkbox
  4. Add .env into .gitignore list

Breaking changes:

  • on deploy need provide environment variables:
    ** REACT_APP_GOOGLE_RECAPTCHA_V3_SITE_KEY
    ** REACT_APP_GOOGLE_RECAPTCHA_V2_SITE_KEY

Unit tests included:
...coming soon

Joris Medeisis added 5 commits June 17, 2021 17:17
* add .env to .gitignore
* install google recaptcha v2 ands v3 components
* wrap App with google recaptcha v3
* add api functions for recaptcha v2 and v3 verification
* Add bot validation provider component
@vercel
Copy link

vercel bot commented Jun 17, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/nexchange/nexchange-open-client-react/ESJ6TeSAePLL3pNoCQesFrycPo6B
✅ Preview: Failed

[Deployment for cc2f7ae failed]

* add styling for loader and error page
* add remove recaptcha v2 site key prop -> can be taken from env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants