Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reCaptcha for gnokey mobile #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iuricmp
Copy link

@iuricmp iuricmp commented Dec 19, 2024

This PR implements reCaptcha support for Gnokey mobile or any other app that has React Native as a framework.

The idea is simple: send the reCaptcha token trought React Native Webview. After solving the reCaptcha challenge, the modal invokes window.ReactNativeWebView.postMessage(secret) to pass the token.

To open the custom modal on Faucet Hub, the React Native application must pass the chain-faucet URL as a URL parameter, eg:

http://localhost:5173/?faucet_url=https://faucet-api.test5.gno.land

@iuricmp iuricmp marked this pull request as draft December 19, 2024 17:01
Copy link

netlify bot commented Dec 19, 2024

Deploy Preview for gno-faucet-hub ready!

Name Link
🔨 Latest commit f5a05ef
🔍 Latest deploy log https://app.netlify.com/sites/gno-faucet-hub/deploys/676567d7a125aa0008e61d90
😎 Deploy Preview https://deploy-preview-38--gno-faucet-hub.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@iuricmp iuricmp force-pushed the feat--recaptcha-for-gnokey-mobile branch from 148216e to 54215e0 Compare December 20, 2024 12:13
@iuricmp iuricmp marked this pull request as ready for review December 20, 2024 12:21
@iuricmp iuricmp force-pushed the feat--recaptcha-for-gnokey-mobile branch from 54215e0 to 5ead26e Compare December 20, 2024 12:25
@iuricmp iuricmp force-pushed the feat--recaptcha-for-gnokey-mobile branch from 5ead26e to f5a05ef Compare December 20, 2024 12:49
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.

1 participant