
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@captchafox/solid
Advanced tools
[](https://www.npmjs.com/package/@captchafox/solid)
Install the library using your prefered package manager
npm install @captchafox/solid
yarn add @captchafox/solid
pnpm add @captchafox/solid
bun add @captchafox/solid
import { CaptchaFox } from '@captchafox/solid';
function Example() {
return <CaptchaFox sitekey="sk_11111111000000001111111100000000" />;
}
Prop | Type | Description | Required |
---|---|---|---|
sitekey | string | The sitekey for the widget. | ✅ |
lang | string | The language the widget should display. Defaults to automatically detecting it. | |
mode | inline|popup|hidden | The mode the widget should be displayed in. | |
theme | light | dark | ThemeDefinition | The theme of the widget. Defaults to light. | |
nonce | string | Randomly generated nonce. | |
i18n | object | Custom i18n configuration. | |
onVerify | function | Called with the response token after successful verification. | |
onFail | function | Called after unsuccessful verification. | |
onError | function | Called when an error occured. | |
onExpire | function | Called when the challenge expires. | |
onClose | function | Called when the challenge was closed. |
import { CaptchaFox, CAPTCHA_RESPONSE_KEY } from '@captchafox/solid';
function Example() {
const handleVerify = (token: string) => {
// do something with the token here (e.g. submit the form)
const formData = {
// your form data
[CAPTCHA_RESPONSE_KEY]: token
};
};
return <CaptchaFox sitekey="sk_11111111000000001111111100000000" onVerify={handleVerify} />;
}
import { CaptchaFox, CaptchaFoxInstance } from '@captchafox/solid'
function Example() {
let captchaRef: CaptchaFoxInstance;
const triggerAction = async () => {
// execute the captcha
try {
const token = await captchaRef.execute();
} catch {
// unsuccessful verification
}
}
return (
<CaptchaFox
sitekey="sk_11111111000000001111111100000000"
ref={captchaRef!}
/>
<button onClick={triggerAction}>Action</button>
)
}
You can find more detailed examples in the GitHub repository.
FAQs
[](https://www.npmjs.com/package/@captchafox/solid)
The npm package @captchafox/solid receives a total of 37 weekly downloads. As such, @captchafox/solid popularity was classified as not popular.
We found that @captchafox/solid 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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.