
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
@getyoti/share-client-core
Advanced tools
⚠️ Are you set up with Yoti?
Please make sure you have read the quick introduction
Install the package
npm i @getyoti/share-client-core
Ready to use! Simply pass your SDK_ID
, the DOM
identifier of the html container, and specify the controls and options.
import { startYotiModalShare } from '@getyoti/share-client-core'
const SDK_ID = '60f98bf7-0da7-4484-aa64-5a753dd502e0'
const DOM_ID = 'share-div'
const shareUrlProvider = async () => {
// Call your server to get a new share url and return that url.
}
await startYotiModalShare({
clientSdkId: SDK_ID,
domId: DOM_ID,
controls: {
shareUrlProvider,
},
options: {
skin: 'digital-id-uk',
button: {
width: 'full',
},
},
})
The library exposes 3 methods
import { loadClient, startYotiModalShare, startYotiInlineShare } from '../lib/main'
Method | Description |
---|---|
loadClient() | Utility method, loads the Yoti share client once only |
startYotiModalShare({...}) | Loads the share client if not present and then render the modal element |
startYotiInlineShare({...}) | Same as startYotiModalShare but for the inline element |
FAQs
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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.