Authentication
Integration Guide
Asynchronous authenticate Game Client with your proven credentials:
Step 1. Call the initAsync() function asynchronous to start to initialize your game:
client.initAsync()
.then(() => {
// Write your code here.
})
.catch((error) => {
// Handle error.
})Step 2. If our system authenticates your game client, you can start using our GameClient API functions. Example:
const citizenCode = client.user.citizen.getCitizenCode();Last updated