Introduction
Clinch is a gaming suite with peer to peer wagering games. It can be embedded onto other websites via an iframe and the Clinch SDK.
The Clinch SDK enables secure communication between a parent website and an embedded iframe. It provides an easy way to handle operations like token authentication, and balance retrieval, facilitating seamless interactions between the two contexts. The SDK uses the postMessage
API to ensure secure message passing between the parent and the iframe.
Key concepts
iframe: A HTML element used to embed another HTML page within the parent page.
postMessage API: Allows secure cross-origin communication between a parent window and an iframe.
Integration Guide
Configure SDK – Integrate the Clinch SDK for secure iframe communication
Authenticate Users – Generate an authentication token when users open the Clinch web app via your iframe.
Debit & Credit Users – Implement endpoints to manage user balance changes based on match outcomes.
Go Live – Verify configurations and follow a checklist for a secure production launch.
Last updated