
Security News
Free Certified Patch for Critical Rails Active Storage Vulnerability
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.
@trade-it/react
Advanced tools
React SDK for embedding Trade It connect and trade experiences into a web app.
@trade-it/reactReact SDK for embedding Trade It connect and trade experiences directly inside your app.
Use this package when you want to:
npm i @trade-it/react
Full integration guides, examples, and API references:
npx skills add trade-it-inc/skills --skill trade-it-skillYour backend calls POST /api/portal: use Basic client credentials with oauth_options to select Onboarding mode, or the user’s Bearer access token without oauth_options to select Connection mode. Pass the returned URL to openConnect. Your backend supplies a registered redirect_uri on the embedding website’s origin. Include oauth_options.email_hint to start with an email code, or omit it to offer Google, Apple, X, Discord, and email sign-in. Users can switch methods; social sign-in opens a popup and returns to the same portal. Trade It explains access, authenticates the user, and opens brokerage connection inside the same iframe. Your backend can optionally supply connect_options.brokerage_code or connect_options.brokerage_filter when creating the portal URL, using the same behavior as a connect session.
const tradeIt = useTradeIt({
onAuthorization: async authorization => {
const response = await fetch('/api/tradeit/complete', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(authorization),
});
if (!response.ok) throw new Error('Could not save Trade It access');
},
});
tradeIt.openConnect({ launch: { mode: 'connect', url: onboardingUrl } });
onAuthorization receives { code, state, issuer }; resolve it only after your authenticated backend validates the attempt and saves the OAuth tokens. Rejection is reported inside the iframe. Brokerage connection starts immediately, and automatic closure waits for the callback. Credential events do not go to the generic onEvent callback.
See the Onboarding mode guide for the server endpoints, PKCE/state validation, and account ownership rules. The same SDK method opens subsequent connections without another authorization event. Standard redirect OAuth remains available for custom sign-in experiences.
Add notes under Unreleased in CHANGELOG.md and commit your changes first. From the repository root, prepare a release with:
npm run release:minor --workspace=@trade-it/react
Use release:major or release:patch for other increments. The script versions the changelog, bumps the package and lockfile, then creates a commit and a package-specific tag. When releasing core too, prepare core first so React includes its updated dependency.
To release both SDK packages together, use npm run release:sdk:minor (or major / patch) from the root. Push the commits and tags, then use the existing SDK publish workflow or npm run publish:sdk. Release preparation does not build, publish, or push.
FAQs
React SDK for embedding Trade It connect and trade experiences into a web app.
The npm package @trade-it/react receives a total of 10 weekly downloads. As such, @trade-it/react popularity was classified as not popular.
We found that @trade-it/react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Socket has released a free Certified Patch for a critical Rails Active Storage vulnerability, giving developers time to upgrade to a secure Rails version.

Security News
/Threat Research
A malicious Ruby gem runs a credential-stealing worm during installation, poisons AI coding tools, and can wipe files when a stolen GitHub token is revoked.

Security News
GitHub is tightening GitHub Actions security with new restrictions on privileged pull request workflows. Here's what changes and how maintainers are affected.