SDK integration
Integrate the shield SDK and risk signals into a game client.
Complete this guide in a test environment first, then roll it out to production in stages.
01
Install the SDK
Install the SDK with your package manager and initialize it at application startup, before network requests.
CONFIG
npm install @1dun/game-shield
import { Shield } from "@1dun/game-shield"
Shield.initialize({ projectId: "your-project-id" })02
Submit risk signals
Collect risk signals in critical flows such as sign-in, payment and matchmaking. Do not upload unnecessary personal data.
- Call collectSignal before sign-in
- Log requestId on exceptions
- Use server-side results for business actions
03
Verify the integration
In a test environment, confirm that client version, risk score and server validation appear in the events panel.
Next stepNeed help? Contact support →