Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@google-cloud/recaptcha-enterprise-react-native
Advanced tools
React Native plugin for reCAPTCHA Enterprise Mobile SDK
Please note that issues filed in this repository are not an official Google support channel and are answered on a best effort basis. For official support, please visit: https://cloud.google.com/support-hub.
If you have an issue with the React Native plugin please post issues in this repository. If you are having issues with the underlying SDK, please post issues in https://github.com/GoogleCloudPlatform/recaptcha-enterprise-mobile-sdk.
For general documentation on reCAPTCHA Enterprise for mobile applications, see Android and iOS.
Add the package to your React Native project:
npx yarn add @google-cloud/recaptcha-enterprise-react-native
If using VSCode install eslint:
https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint
You may need to use an older JDK:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-19-latest/Contents/Home
Similar to Firebase, the library requires frameworks and static linkage:
use_frameworks! :linkage => :static
And flipper is not compatible with static linkage so disable flipper in the Podfile:
flipper_config = FlipperConfiguration.disabled
import { execute, initClient, RecaptchaAction, } from '@google-cloud/recaptcha-enterprise-react-native';
const [initResult, setInitResult] = React.useState<string | undefined>();
const [executeResult, setExecuteResult] = React.useState<
string | undefined
>();
const [token, setToken] = React.useState<string | undefined>();
Init:
initClient(siteKey ?? 'SITEKEY', 10000)
.then(setInitResult('ok'))
.catch((error) => {
setInitResult(error.toString());
})
Execute:
execute(RecaptchaAction.LOGIN(), 10000)
.then((token) => {
setExecuteResult(token);
})
.catch((error) => {
setExecuteResult(error.toString());
})
Follow guidance at Example App.
error: include of non-modular header inside framework module 'RecaptchaEnterprise.Recaptcha'
Use static linking in pods, for instance: USE_FRAMEWORKS=static pod install
or
use_frameworks! :linkage => :static
in your Podfile.
<FlipperKit/FlipperClient.h>`
Flipper is not yet compatible with static linkage, so disable flipper in your
Podfile: flipper_config = FlipperConfiguration.disabled
Run the following command in the terminal:
export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk
18.6.0
Upgrade iOS SDK to 18.6.0 and Android SDK to 18.6.1
FAQs
React Native plugin for reCAPTCHA Enterprise Mobile SDK
We found that @google-cloud/recaptcha-enterprise-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.