Authentication
This page explains how to authenticate requests to and from Riddec API
How to get request signature
import crypto from 'node:crypto';
import axios from 'axios';
const secret = 'your-secret-token';
const requestBody = '{"mode":"demo","game":"cosmoloot","timestamp":123}';
// Value: f8db3a74894e23e1dc94f6a5afd8199d940f81c8244badf05edd1181868d87fd
const signature = crypto
.createHmac('sha256', secret)
.update(requestBody)
.digest('hex');
await axios.post(
'https://riddecgames.com/gateway/api/launcher/standard/your-integration-id/v1/launch',
requestBody,
{ headers: { 'x-signature': signature } }
);Timestamp
Last updated