Authenticate Users
Creating an authentication token for your user
Last updated
POST https://api-sandbox.clinch.gg/v0/wager/operator/create-token{
"userId": "<userId>",
"displayName": "<userName>",
"currency": "<OPTIONAL_USER_CURRENCY>",
"subOperatorId": "<OPTIONAL_SUB_OPERATOR_ID>"
}x-operator-id: your_operator_id
x-api-key: your_api_key{
"status": 200,
"data": {
"token": "eyJhbGciOiJSUzI1NiIsInR5cC..."
}
}async function getToken() {
const response = await post('https://your-server.com/thndr/login');
const data = await response.json();
return data.token;
}