const timestamp = Date.now().toString();
const body = {
sessionJwt: 'eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCJ9...' // IPP Session JWT from registration
};
const hmac = generateHmacSignature(timestamp, body, secretKey);
const response = await axios.post(apiEndpoint + '/instantPlayPass/reveal/claimingCode', body, {
headers: {
apikey: apiKey,
signature: hmac,
timestamp: timestamp
}
});
// Get the claiming code
const { claimingCode } = response.data;