
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
@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 { createYotiWebShare } from '@getyoti/share-client-core'
const SDK_ID = '60f98bf7-0da7-4484-aa64-5a753dd502e0'
const DOM_ID = 'share-div'
await createYotiWebShare({
name: 'demo',
sdkId: SDK_ID,
domId: DOM_ID,
flow: 'MODAL',
hooks: {
sessionIdResolver: () => Promise.resolve('some-session-id'),
},
})
The library exposes 3 methods
import { loadClient, startYotiModalShare, startYotiInlineShare } from '../lib/main'
| Method | Description |
|---|---|
| loadClient() | Utility method, loads the Yoti share client once only (automatically called by createYotiWebShare({...})) |
| createYotiWebShare({...}) | Create a Yoti WebShare instance, ready to be used |
| getYotiWebShareByName({...}) | Returns the Yoti WebShare corresponding to the name if exists |
| getYotiWebShareByDomId({...}) | Returns the Yoti WebShare corresponding to the DOM ID if exists |
| getDetectedDeviceType({...}) | Returns the device detected (currently 'desktop'/'mobile') |
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.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.