
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@trueguard/trueguard-js
Advanced tools
JavaScript SDK for Trueguard verification and fingerprinting
Trueguard is a comprehensive fraud detection and bot prevention platform. This JavaScript SDK allows you to easily integrate Trueguard's verification and fingerprinting capabilities into your web applications.
npm install @trueguard/trueguard-js
yarn add @trueguard/trueguard-js
pnpm add @trueguard/trueguard-js
import { Trueguard } from "@trueguard/trueguard-js";
// Initialize with your public API key
const trueguard = new Trueguard({ apiKey: "your-public-api-key" });
// Create a verification session
try {
const verificationId = await trueguard.verificationSession();
console.log("Verification ID:", verificationId);
// Use the verification ID in your login, register, etc. API calls
// to associate user actions with this verification session
} catch (error) {
console.error("Verification failed:", error.message);
}
import Trueguard from "@trueguard/trueguard-js";
const trueguard = new Trueguard({ apiKey: "your-public-api-key" });
const { Trueguard } = require("@trueguard/trueguard-js");
const trueguard = new Trueguard({ apiKey: "your-public-api-key" });
<script src="https://unpkg.com/@trueguard/trueguard-js/dist/index.global.js"></script>
<script>
const trueguard = new Trueguard.Trueguard({ apiKey: "your-public-api-key" });
</script>
new Trueguard(publicApiKey: string)
Creates a new Trueguard instance.
Parameters:
publicApiKey
(string): Your Trueguard public API keyExample:
const trueguard = new Trueguard("pub-1234567890abcdef");
verificationSession(): Promise<string>
Initiates a verification session by collecting browser and network fingerprints.
Returns:
Promise<string>
: A promise that resolves to a unique verification IDThrows:
Error
: If verification fails or if not running in a browser environmentTrueguard provides enterprise-grade fraud detection and bot prevention solutions. Our platform combines advanced fingerprinting, machine learning, and real-time risk assessment to protect your business from automated attacks and fraudulent activity.
FAQs
JavaScript SDK for Trueguard verification and fingerprinting
The npm package @trueguard/trueguard-js receives a total of 299 weekly downloads. As such, @trueguard/trueguard-js popularity was classified as not popular.
We found that @trueguard/trueguard-js demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.