
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
@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.

Product
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.