Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
@transak/transak-kyc-sdk
Advanced tools
Transak SDK that allows you to easily integrate KYC for users
A library for decentralised applications to KYC their global user base.
<div id="transakMount"></div>
import { TransakConfig, Transak, KycLevel } from '@transak/transak-kyc-sdk';
const transakConfig: TransakConfig = {
apiKey: '<your-api-key>', // (Required)
environment: Transak.ENVIRONMENTS.STAGING/Transak.ENVIRONMENTS.PRODUCTION, // (Required)
containerId: 'transakMount', // Id of the element where you want to initialize the iframe
didSessionId: '1ee48fb0-18b8-478e-b232-9a88b87fd908', // The session ID created via the API
kycLevel: KycLevel.SIMPLE, // | STANDARD | ENHANCED
widgetWidth: '100px', // optional
widgetHeight: '300px', // optional
};
let transak = new Transak(transakConfig);
transak.init();
// To get all SDK events
Transak.on('*', (data) => {
console.log(data);
});
// This will trigger when the user closed the widget
Transak.on(Transak.EVENTS.TRANSAK_WIDGET_CLOSE, () => {
console.log('Transak SDK closed!');
});
/*
* This will trigger when the user completes the KYC process
*/
Transak.on(Transak.EVENTS.TRANSAK_KYC_COMPLETE, () => {
// ...
});
/*
* This will trigger when the user is on the Decentralized ID page and
* clicks the button to create a credential claim
*/
Transak.on(Transak.EVENTS.TRANSAK_CREDENTIAL_CLAIM_CREATED, () => {
// ...
});
If you want to use our modal UI, do not pass the containerId
and use transak.close()
instead of transak.cleanup()
Do not forget to clean up by using the transak.cleanup()
or transak.close()
useEffect(() => {
return () => {
transak.cleanup();
};
}, []);
FAQs
Transak SDK that allows you to easily integrate KYC for users
We found that @transak/transak-kyc-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.
Security News
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.