
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@modern-treasury/user-onboarding-react
Advanced tools
React component for Modern Treasury User Onboarding Flow
user-onboarding-react
React component for integrating with Modern Treasury's Compliance User Onboarding
To install the user-onboarding-react
npm package, you must use one of the following commands.
npm install @modern-treasury/user-onboarding-react
yarn add @modern-treasury/user-onboarding-react
To start onboarding users to your application, you must generate a User Onboarding Object and use its ID to start the session.
Create a User Onboarding and replace <GENERATED_USER_ONBOARDING_ID> with your User Onboarding's ID.
For a demo of this SDK being used, look here.
import { useMTUserOnboarding } from "@modern-treasury/user-onboarding-react";
// Pass in optional options as shown below
const options = {
...
}
const [ready, error, open] = useMTUserOnboarding(options);
return (
<button
onClick={() => open("<GENERATED_USER_ONBOARDING_ID>")}
disabled={!ready}
>
Open MT-Onboarding
</button>
);
import { MTUserOnboarding } from "@modern-treasury/user-onboarding-react";
const options = {
userOnboardingId: "<GENERATED_USER_ONBOARDING_ID>",
onSuccess: () => {
console.log("MT User Onboarding is a Success!");
},
onCancel: () => {
console.log("MT User Onboarding has been Canceled!");
},
onError: () => {
console.log("MT User Onboarding has an Error!");
},
style: {
backgroundColor: "green",
boarder: "none",
color: "white",
width: "200px",
height: "75px",
children: "Open User Onboarding",
className: "MT-Onboarding",
padding: "15px 32px",
textAlign: "center" as const,
textDecoration: "none",
display: "inline-block",
fontSize: "16px",
},
};
function App() {
return (
<div className="App">
<MTUserOnboarding {...options}>
Open MTUserOnboarding
</MTUserOnboarding>
</div>
);
}
FAQs
React component for Modern Treasury User Onboarding Flow
The npm package @modern-treasury/user-onboarding-react receives a total of 0 weekly downloads. As such, @modern-treasury/user-onboarding-react popularity was classified as not popular.
We found that @modern-treasury/user-onboarding-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.