
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@stackone/react-hub
Advanced tools
Allow your users to quickly integrate with several services with StackOne. The `@stackone/react-hub` introduces an easy-to-use React hook for integrating with your web app.
Allow your users to quickly integrate with several services via StackOne. The @stackone/react-hub introduces an easy-to-use React hook to be able to embed the StackOne integrations hub into your SaaS application.
# NPM
npm install --save @stackone/react-hub
# Yarn
yarn add @stackone/react-hub
Use React hook to start the Connect flow. Listen to the callbacks to know when an account has been linked or whether the flow has been cancelled. The callback will give you the information about the account added/updated - you may also retrieve this information by using webhooks or the API.
import { useStackOneHub } from '@stackone/react-hub';
const LinkAccountButton = () => {
const { startConnect } = useStackOneHub();
const startFlow = useCallback(async () => {
const sessionToken = await retrieveConnectSessionToken();
startConnect({ sessionToken });
}, [startConnect]);
return (
<button onClick={startFlow}>Connect Account</button>
);
};
When starting the flow, you may pass a few options:
const { startConnect } = useStackOneHub();
startConnect(options)
| Name | Type | Required | Description |
|---|---|---|---|
| sessionToken | string | Yes | Connect session token created in the backend. The session token allows users to manage their accounts in the frontend. You may limit a connect session token to selected categories or to a given service |
| apiUrl | string | No | Which API instance should it connect to. It will automatically infer it from your connect session. |
| onSuccess(account) | function | No | Called when an account is successfully linked. The account param gives you information about the linked account. |
| onCancel() | function | No | Called when the connect flow is closed without an account being linked. |
| onClose() | function | No | Called every time the connect flow is closed regardless of whether an account has been linked or not. |
This repose uses conventional commit. The repo use semantic-release and the package version is automatically determined based on the commit messages.
Use the Manual release workflow to trigger a release. The package version and changelog will automatically be generated based on conventional commits.
FAQs
Allow your users to quickly integrate with several services with StackOne. The `@stackone/react-hub` introduces an easy-to-use React hook for integrating with your web app.
The npm package @stackone/react-hub receives a total of 25,429 weekly downloads. As such, @stackone/react-hub popularity was classified as popular.
We found that @stackone/react-hub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain