
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
@silentauth/silentauth-sdk-web
Advanced tools
SDK for SilentAuth that provides a helper method for requesting the `check_url` for tru.ID's PhoneCheck and SubscriberCheck
The Web SDK for SilentAuth providing helper functions to check whether the device is on a cellular data connection, and for requesting the SilentAuth check.
<script src="https://cdn.jsdelivr.net/npm/@silentauth/silentauth-sdk-web/dist/silentauth-sdk.umd.js"></script>
$ npm install @silentauth/silentauth-sdk-web
<script src="https://cdn.jsdelivr.net/npm/@silentauth/silentauth-sdk-web/dist/silentauth-sdk.umd.js"></script>
<script>
silentauth.getReachability(url)
</script>
When installed via a CDN a silentauth
global is installed.
<script src="https://cdn.jsdelivr.net/npm/@silentauth/silentauth-sdk-web/dist/silentauth-sdk.umd.js"></script>
<script>
silentauth.openCheckUrl(url, config)
</script>
import silentauth from '@silentauth/silentauth-sdk-web'
silentauth.getReachability(url)
When installed via NPM the imported object exposes the openCheckUrl
function.
import silentauth from '@silentauth/silentauth-sdk-web'
silentauth.openCheckUrl(checkUrl, config)
openCheckUrl
ConfigThe openCheckUrl
function takes an optional config
Object argument:
silentauth.openCheckUrl(url, config)
The configuration options are:
{
// whether debug information will be logged to the console.
// Defaults to `false`
debug: boolean,
// "image" - a zero pixel image is dynamically added to the DOM for the check_url request
// "window" - `window.open` is called to open the check_url in a new window
// Defaults to "image".
checkMethod: "image" | "window",
// If `checkMethod` was set to `window` identifies the number of
// milliseconds after which the opened window will be closed.
// Defaults to 3000.
windowCloseTimeout: Number,
// It will run the device coverage check to determine
// if the device is on a mobile IP
// Defaults to true
checkDeviceCoverage: boolean,
// Depending on what PhoneCheck API version the check is created with.
// Defaults to "v0.2"
version: "v0.1" | "v0.2",
}
You can run npm run dev
that will open rollup with watch mode that will re-compile the SDK after every change.
In another terminal you can run npm run serve
to open a test web page where you can test real phone checks if you have the node server running or you can simply check a PhoneCheck check_url
.
npm run changelog
to auto-update the CHANGELOG.md
and manually edit to finessegit commit -m 'chore(release): v{version}
git tag v{version}
git push --follow-tags origin main
npm run build
npm publish --access public
Distributed under the MIT license. See LICENSE
for more information.
FAQs
SDK for SilentAuth that provides a helper method for requesting the `check_url` for tru.ID's PhoneCheck and SubscriberCheck
We found that @silentauth/silentauth-sdk-web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.